Re: [Qemu-devel] [PATCH v2] q35: Improve sample configuration files

2017-02-01 Thread Gerd Hoffmann
Hi, > * Document more devices: > - the video card is added by default; > - so is the Ethernet adapter, apparently. > > The last part seems to clash with some of Gerd's comments, > so I'm kinda puzzled. Oh yes, the wonderful confusing world of default devices ;) So, if you run qemu w

Re: [Qemu-devel] [PULL 000/107] ppc-for-2.9 queue 20170202

2017-02-01 Thread no-reply
Hi, Your series seems to have some coding style problems. See output below for more information: Type: series Subject: [Qemu-devel] [PULL 000/107] ppc-for-2.9 queue 20170202 Message-id: 20170202051445.5735-1-da...@gibson.dropbear.id.au === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1 total=$

Re: [Qemu-devel] [PATCH v1 3/6] qemu-img: add support for -n arg to dd command

2017-02-01 Thread Markus Armbruster
"Daniel P. Berrange" writes: > On Wed, Feb 01, 2017 at 01:31:01PM +0100, Max Reitz wrote: >> On 01.02.2017 13:28, Daniel P. Berrange wrote: >> > On Wed, Feb 01, 2017 at 01:23:54PM +0100, Max Reitz wrote: >> >> On 01.02.2017 13:16, Daniel P. Berrange wrote: >> >>> On Wed, Feb 01, 2017 at 01:13:39P

Re: [Qemu-devel] [PATCH v1 3/6] qemu-img: add support for -n arg to dd command

2017-02-01 Thread Markus Armbruster
Max Reitz writes: > On 01.02.2017 13:28, Daniel P. Berrange wrote: >> On Wed, Feb 01, 2017 at 01:23:54PM +0100, Max Reitz wrote: >>> On 01.02.2017 13:16, Daniel P. Berrange wrote: On Wed, Feb 01, 2017 at 01:13:39PM +0100, Max Reitz wrote: > On 30.01.2017 19:37, Eric Blake wrote: >> O

[Qemu-devel] [PULL 106/107] ppc/kvm: Handle the "family" CPU via alias instead of registering new types

2017-02-01 Thread David Gibson
From: Thomas Huth When running with KVM on POWER, we are registering a "family" CPU type for the host CPU that we are running on. For example, on all POWER8-compatible hosts, we register a "POWER8" CPU type, so that you can always start QEMU with "-cpu POWER8" there, without the need to know whet

Re: [Qemu-devel] usb3 - xhci - Assertion `intr->er_full' failed

2017-02-01 Thread Gerd Hoffmann
Hi, > - usb with usbredir 0.7.1 What kind of device do you assign to the guest? > - guest windows 7 - renesas driver 2.1.36 or 2.1.39 ok. > Where is the verfied windows driver that is compatible/tested with xhci code ? Usually I test with the drivers shipped by the operating system, i.e. lin

[Qemu-devel] [PULL 101/107] target-ppc: Add xststdc[sp, dp, qp] instructions

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania xststdcsp: VSX Scalar Test Data Class Single-Precision xststdcdp: VSX Scalar Test Data Class Double-Precision xststdcqp: VSX Scalar Test Data Class Quad-Precision Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/fpu_helper.c | 66

[Qemu-devel] [PULL 098/107] ppc: switch to constants within BUILD_BUG_ON

2017-02-01 Thread David Gibson
From: "Michael S. Tsirkin" We are switching BUILD_BUG_ON to verify that it's parameter is a compile-time constant, and it turns out that some gcc versions (specifically gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609) are not smart enough to figure it out for expressions involving local variab

[Qemu-devel] [PATCH v2] audio: make audio poll timer deterministic

2017-02-01 Thread Pavel Dovgalyuk
This patch changes resetting strategy of the audio polling timer. It does not change expiration time if the timer is already set. This patch is needed to make this timer deterministic and to use execution record/replay for audio devices. audio_reset_timer is used in the function audio_vm_change_st

[Qemu-devel] [PULL 100/107] target-ppc: Add xvtstdc[sp, dp] instructions

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania xvtstdcsp: VSX Vector Test Data Class Single-Precision xvtstdcdp: VSX Vector Test Data Class Double-Precision Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/fpu_helper.c | 40 + target/ppc/hel

[Qemu-devel] [PATCH v2] replay: add record/replay for audio passthrough

2017-02-01 Thread Pavel Dovgalyuk
This patch adds recording and replaying audio data. Is saves synchronization information for audio out and inputs from the microphone. v2: removed unneeded whitespace change Signed-off-by: Pavel Dovgalyuk --- audio/audio.c|9 - audio/audio.h|5 +++ audio/mixe

[Qemu-devel] [PULL 093/107] target/ppc: Add pcr_supported to POWER9 cpu class definition

2017-02-01 Thread David Gibson
From: Suraj Jitindar Singh pcr_supported is used to define the supported PCR values for a given processor. A POWER9 processor can support 3.00, 2.07, 2.06 and 2.05 compatibility modes, thus we set this accordingly. Signed-off-by: Suraj Jitindar Singh Signed-off-by: David Gibson --- target/ppc

[Qemu-devel] [PULL 095/107] spapr: clock should count only if vm is running

2017-02-01 Thread David Gibson
From: Laurent Vivier This is a port to ppc of the i386 commit: 00f4d64 kvmclock: clock should count only if vm is running We remove timebase_post_load function, and use the VM state change handler to save and restore the guest_timebase (on stop and continue). We keep timebase_pre_save to re

[Qemu-devel] [PULL 107/107] hw/ppc/pnv: Use error_report instead of hw_error if a ROM file can't be found

2017-02-01 Thread David Gibson
From: Thomas Huth hw_error() is for CPU related errors only (it dumps the CPU registers and calls abort()!), so using error_report() is the better choice of reporting an error in case we simply did not find a file. Signed-off-by: Thomas Huth Signed-off-by: David Gibson --- hw/ppc/pnv.c | 6 +

[Qemu-devel] [PULL 097/107] target/ppc/cpu-models: Fix/remove bad CPU aliases

2017-02-01 Thread David Gibson
From: Thomas Huth There is no CPU model called "7447_v1.2" in our list, so the "7447" alias should point to "7447_v1.1" instead. Let's also remove the "codename" aliases that point to non-implemented CPU models - they are really of no use here. Signed-off-by: Thomas Huth Signed-off-by: David Gi

[Qemu-devel] [PULL 083/107] target-ppc: Add xscvqps[d, w]z instructions

2017-02-01 Thread David Gibson
From: Bharata B Rao xscvqpsdz: VSX Scalar truncate & Convert Quad-Precision format to Signed Doubleword format xscvqpswz: VSX Scalar truncate & Convert Quad-Precision format to Signed Word format Signed-off-by: Bharata B Rao Signed-off-by: Nikunj A Dadhania Signed-off-by:

[Qemu-devel] [PULL 103/107] tcg/POWER9: NOOP the cp_abort instruction

2017-02-01 Thread David Gibson
From: Suraj Jitindar Singh The cp_abort instruction is used to remove the state of an in progress copy paste sequence. POWER9 compilers add this in various places, such as context switches which causes illegal instruction signals since we don't yet implement this instruction. Given there is no i

[Qemu-devel] [PULL 091/107] target-ppc: Add xvcv[hpsp, sphp] instructions

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania xvcvhpsp: VSX Vector Convert Half Precision to Single Precision xvcvsphp: VSX Vector Convert Single Precision to Half Precision Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/fpu_helper.c | 27 ++- target

[Qemu-devel] [PULL 079/107] target-ppc: Add xvxexpsp instruction

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania xvxexpsp: VSX Vector Extract Exponent Single Precision Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/translate/vsx-impl.inc.c | 17 + target/ppc/translate/vsx-ops.inc.c | 1 + 2 files changed, 18 insertions(+) diff --git

[Qemu-devel] [PULL 086/107] ppc: Implement bcdutrunc. instruction

2017-02-01 Thread David Gibson
From: Jose Ricardo Ziviani bcdutrunc. Decimal unsigned truncate. Works like bcdtrunc. with unsigned BCD numbers. Signed-off-by: Jose Ricardo Ziviani Signed-off-by: David Gibson --- target/ppc/helper.h | 1 + target/ppc/int_helper.c | 51 +++

[Qemu-devel] [PULL 104/107] target/ppc/mmu_hash64: Fix printing unsigned as signed int

2017-02-01 Thread David Gibson
From: Suraj Jitindar Singh We were printing an unsigned value as a signed value, fix this. Signed-off-by: Suraj Jitindar Singh Signed-off-by: David Gibson --- target/ppc/mmu-hash64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/ppc/mmu-hash64.c b/target/ppc/m

[Qemu-devel] [PULL 088/107] target-ppc: Add xscvsdqp and xscvudqp instructions

2017-02-01 Thread David Gibson
From: Bharata B Rao xscvsdqp: VSX Scalar Convert Signed Doubleword format to Quad-Precision format xscvudqp: VSX Scalar Convert Unsigned Doubleword format to Quad-Precision format Signed-off-by: Bharata B Rao Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson ---

[Qemu-devel] [PULL 071/107] host-utils: Implement unsigned quadword left/right shift and unit tests

2017-02-01 Thread David Gibson
From: Jose Ricardo Ziviani Implements 128-bit left shift and right shift as well as their testcases. By design, shift silently mods by 128, so the caller is responsible to assert the shift range if necessary. Left shift sets the overflow flag if any non-zero digit is shifted out. Examples: uls

[Qemu-devel] [PULL 076/107] target-ppc: Add xsiexpqp instruction

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania xsiexpqp: VSX Scalar Insert Exponent Quad Precision Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/translate/vsx-impl.inc.c | 22 ++ target/ppc/translate/vsx-ops.inc.c | 1 + 2 files changed, 23 insertions(+) diff --g

[Qemu-devel] [PULL 105/107] target/ppc/mmu_hash64: Fix incorrect shift value in amr calculation

2017-02-01 Thread David Gibson
From: Suraj Jitindar Singh We are calculating the authority mask register key value wrong. The pte entry contains the key value with the two upper bits and the three lower bits stored separately. We should use these two portions to get a 5 bit value, not or them together which will only give us

[Qemu-devel] [PULL 085/107] ppc: Implement bcdtrunc. instruction

2017-02-01 Thread David Gibson
From: Jose Ricardo Ziviani bcdtrunc.: Decimal integer truncate. Given a BCD number in vrb and the number of bytes to truncate in vra, the return register will have vrb with such bits truncated. Signed-off-by: Jose Ricardo Ziviani Signed-off-by: David Gibson --- target/ppc/helper.h

[Qemu-devel] [PULL 090/107] target-ppc: Add xsmulqp instruction

2017-02-01 Thread David Gibson
From: Bharata B Rao xsmulqp: VSX Scalar Multiply Quad-Precision Signed-off-by: Bharata B Rao Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/fpu_helper.c | 35 +++ target/ppc/helper.h | 1 + target/ppc/t

[Qemu-devel] [PULL 082/107] target-ppc: Add xvxsigdp instruction

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania xvxsigdp: VSX Vector Extract Significand Dual Precision Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/translate/vsx-impl.inc.c | 40 + target/ppc/translate/vsx-ops.inc.c | 1 + 2 files changed, 41 inse

[Qemu-devel] [PULL 102/107] target/ppc/debug: Print LPCR register value if register exists

2017-02-01 Thread David Gibson
From: Suraj Jitindar Singh It can be useful when debugging to print the LPCR value. Thus we add the LPCR to the "info registers" output if the register had been defined. Signed-off-by: Suraj Jitindar Singh Signed-off-by: David Gibson --- target/ppc/translate.c | 3 +++ 1 file changed, 3 inse

[Qemu-devel] [PULL 080/107] target-ppc: Add xvxexpdp instruction

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania xvxexpdp: VSX Vector Extract Exponent Dual Precision Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/translate/vsx-impl.inc.c | 17 + target/ppc/translate/vsx-ops.inc.c | 1 + 2 files changed, 18 insertions(+) diff --git a

[Qemu-devel] [PULL 060/107] pxb: Restrict to x86

2017-02-01 Thread David Gibson
The PCI Expander Bridge (PXB) device is essentially a hack to allow different PCIe devices to be assigned to different NUMA nodes on x86. Each PXB is sort-of a separate PCI host bridge, except that its config space is shared with the config space of the main PCI host bridge, rather than being inde

[Qemu-devel] [PULL 099/107] target-ppc: Add MMU model check for booke machines

2017-02-01 Thread David Gibson
From: Valentin Plotkin Machines bamboo, e500 and virtex-ml507 assume a certain MMU model, otherwise resulting in unpredictable behavior. Add apropriate checks into *_init functions. Signed-off-by: Valentin Plotkin [regarding virtex parts] Reviewed-by: Edgar E. Iglesias Tested-by: Edgar E. Igl

[Qemu-devel] [PULL 077/107] target-ppc: Add xviexpsp instruction

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania xviexpsp: VSX Vector Insert Exponent Single Precision Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/translate/vsx-impl.inc.c | 26 ++ target/ppc/translate/vsx-ops.inc.c | 2 ++ 2 files changed, 28 insertions(+) d

[Qemu-devel] [PULL 081/107] target-ppc: Add xvxsigsp instruction

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania xvxsigsp: VSX Vector Extract Significand Single Precision Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/fpu_helper.c | 20 target/ppc/helper.h | 1 + target/ppc/translate/vsx-impl.inc.c |

[Qemu-devel] [PULL 057/107] target-ppc: Add xsxexpqp instruction

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania xsxexpqp: VSX Scalar Extract Exponent Quad Precision Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/translate/vsx-impl.inc.c | 15 +++ target/ppc/translate/vsx-ops.inc.c | 1 + 2 files changed, 16 insertions(+) diff --git a/t

[Qemu-devel] [PULL 084/107] ppc/prep: update MAINTAINERS file

2017-02-01 Thread David Gibson
From: Hervé Poussineau Signed-off-by: Hervé Poussineau Signed-off-by: David Gibson --- MAINTAINERS | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index e0be7bc..b1f4d9d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -671,10 +671,13 @@ F: hw/mis

[Qemu-devel] [PULL 078/107] target-ppc: Add xviexpdp instruction

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania xviexpdp: VSX Vector Insert Exponent Dual Precision Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/translate/vsx-impl.inc.c | 26 ++ target/ppc/translate/vsx-ops.inc.c | 1 + 2 files changed, 27 insertions(+) diff

[Qemu-devel] [PULL 087/107] target-ppc: Use ppc_vsr_t.f128 in xscmp[o, u, exp]qp

2017-02-01 Thread David Gibson
From: Bharata B Rao xscmpoqp, xscmpuqp & xscmpexpqp were added before f128 field was introduced in ppc_vsr_t. Now that we have it, use it instead of generating the 128 bit float using two 64bit fields. Signed-off-by: Bharata B Rao Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson -

[Qemu-devel] [PULL 096/107] target/ppc: Remove unused POWERPC_FAMILY(POWER)

2017-02-01 Thread David Gibson
From: Thomas Huth We do not support POWER1 CPUs in QEMU, so it does not make sense to keep this stub around. Signed-off-by: Thomas Huth Signed-off-by: David Gibson --- target/ppc/translate_init.c | 22 -- 1 file changed, 22 deletions(-) diff --git a/target/ppc/translate_i

[Qemu-devel] [PULL 062/107] ppc: Add ppc_set_compat_all()

2017-02-01 Thread David Gibson
Once a compatiblity mode is negotiated with the guest, h_client_architecture_support() uses run_on_cpu() to update each CPU to the new mode. We're going to want this logic somewhere else shortly, so make a helper function to do this global update. We put it in target-ppc/compat.c - it makes as mu

[Qemu-devel] [PULL 089/107] target-ppc: Add xsdivqp instruction

2017-02-01 Thread David Gibson
From: Bharata B Rao xsdivqp: VSX Scalar Divide Quad-Precision Signed-off-by: Bharata B Rao Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/fpu_helper.c | 36 target/ppc/helper.h | 1 + target/ppc/tr

[Qemu-devel] [PULL 075/107] target-ppc: Add xsiexpdp instruction

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania xsiexpdp: VSX Scalar Insert Exponent Double Precision Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/translate/vsx-impl.inc.c | 20 target/ppc/translate/vsx-ops.inc.c | 1 + 2 files changed, 21 insertions(+) diff --g

[Qemu-devel] [PULL 064/107] target-ppc: Add xscvdpqp instruction

2017-02-01 Thread David Gibson
From: Bharata B Rao xscvdpqp: VSX Scalar Convert Double-Precision format to Quad-Precision format Signed-off-by: Bharata B Rao Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/fpu_helper.c | 45 + target/ppc

[Qemu-devel] [PULL 092/107] powerpc/cpu-models: rename ISAv3.00 logical PVR definition

2017-02-01 Thread David Gibson
From: Suraj Jitindar Singh This logical PVR value now corresponds to ISA version 3.00 so rename it accordingly. Signed-off-by: Suraj Jitindar Singh Signed-off-by: David Gibson --- target/ppc/cpu-models.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/ppc/cpu-models

[Qemu-devel] [PULL 072/107] ppc: Implement bcds. instruction

2017-02-01 Thread David Gibson
From: Jose Ricardo Ziviani bcds.: Decimal shift. Given two registers vra and vrb, this instruction shift the vrb value by vra bits into the result register. Signed-off-by: Jose Ricardo Ziviani Signed-off-by: David Gibson --- target/ppc/helper.h | 1 + target/ppc/int_helper.c

[Qemu-devel] [PULL 070/107] host-utils: Move 128-bit guard macro to .c file

2017-02-01 Thread David Gibson
From: Jose Ricardo Ziviani It is not possible to implement functions in host-utils.c for architectures with quadwords because the guard is implemented in the Makefile. This patch move the guard out of the Makefile to the implementation file. Signed-off-by: Jose Ricardo Ziviani Reviewed-by: Eric

[Qemu-devel] [PULL 061/107] pseries: Rewrite CAS PVR compatibility logic

2017-02-01 Thread David Gibson
During boot, PAPR guests negotiate CPU model support with the ibm,client-architecture-support mechanism. The logic to implement this in qemu is very convoluted. This cleans it up to be cleaner, using the new ppc_check_compat() call. The new logic for choosing a compatibility mode is: 1. Usua

[Qemu-devel] [PULL 074/107] ppc: Implement bcdsr. instruction

2017-02-01 Thread David Gibson
From: Jose Ricardo Ziviani bcdsr.: Decimal shift and round. This instruction works like bcds. however, when performing right shift, 1 will be added to the result if the last digit was >= 5. Signed-off-by: Jose Ricardo Ziviani Signed-off-by: David Gibson --- target/ppc/helper.h

[Qemu-devel] [PULL 068/107] target-ppc: xscvqpdp zero VSR

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/fpu_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/ppc/fpu_helper.c b/target/ppc/fpu_helper.c index 8c8e3c5..77f68e9 100644 --- a/target/ppc/fpu_helper.c +++

[Qemu-devel] [PULL 054/107] target-ppc: Add xscvdphp, xscvhpdp

2017-02-01 Thread David Gibson
From: Bharata B Rao xscvdphp: VSX Scalar round & Convert Double-Precision format to Half-Precision format xscvhpdp: VSX Scalar Convert Half-Precision format to Double-Precision format Signed-off-by: Bharata B Rao Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson

[Qemu-devel] [PULL 073/107] ppc: Implement bcdus. instruction

2017-02-01 Thread David Gibson
From: Jose Ricardo Ziviani bcdus.: Decimal unsigned shift. This instruction works like bcds. but considers only unsigned BCDs (no sign in least meaning 4 bits). Signed-off-by: Jose Ricardo Ziviani Signed-off-by: David Gibson --- target/ppc/helper.h | 1 + target/ppc/int_helpe

[Qemu-devel] [PULL 094/107] ppc: Remove unused function cpu_ppc601_rtc_init()

2017-02-01 Thread David Gibson
From: Thomas Huth It is completely unused, thus it can be removed without problems. Signed-off-by: Thomas Huth Signed-off-by: David Gibson --- hw/ppc/ppc.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/hw/ppc/ppc.c b/hw/ppc/ppc.c index 8945869..f9a4b51 100644 --- a/hw/ppc/ppc.c ++

[Qemu-devel] [PULL 050/107] prep: add IBM RS/6000 7020 (40p) machine emulation

2017-02-01 Thread David Gibson
From: Hervé Poussineau Machine supports both Open Hack'Ware and OpenBIOS. Open Hack'Ware is the default because OpenBIOS is currently unable to boot PReP boot partitions or PReP kernels. Signed-off-by: Hervé Poussineau [dwg: Correct compile failure with KVM located by Thomas Huth] Signed-off-by

[Qemu-devel] [PULL 059/107] target-ppc: Add xsxsigqp instructions

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania xsxsigqp: VSX Scalar Extract Significand Quad Precision Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/translate/vsx-impl.inc.c | 29 + target/ppc/translate/vsx-ops.inc.c | 1 + 2 files changed, 30 insertions(+

[Qemu-devel] [PULL 067/107] ppc: Fix a warning in bcdcfz code and improve BCD_DIG_BYTE macro

2017-02-01 Thread David Gibson
From: Jose Ricardo Ziviani This commit fixes a warning in the code "(i * 2) ? .. : ..", which should be better as "i ? .. : ..", and improves the BCD_DIG_BYTE macro by placing parentheses around its argument to avoid possible expansion issues like: BCD_DIG_BYTE(i + j). Signed-off-by: Jose Ricard

[Qemu-devel] [PULL 053/107] target-ppc: Rename helper_compute_fprf to helper_compute_fprf_float64

2017-02-01 Thread David Gibson
From: Bharata B Rao Since helper_compute_fprf() works on float64 argument, rename it to helper_compute_fprf_float64(). Also use a macro to generate helper_compute_fprf_float64() so that float128 version of the same helper can be introduced easily later. Signed-off-by: Bharata B Rao Signed-off-b

[Qemu-devel] [PULL 069/107] softfloat: Fix the default qNAN for target-ppc

2017-02-01 Thread David Gibson
From: Bharata B Rao Currently float128_default_nan() returns 0x8000 in the higher double word, but it should return 0x7FFF8000 which is the correct higher double word for default qNAN on PowerPC. Signed-off-by: Bharata B Rao Signed-off-by: Nikunj A Dadhania Signed-off-by: D

[Qemu-devel] [PULL 049/107] prep: add IBM RS/6000 7020 (40p) memory controller

2017-02-01 Thread David Gibson
From: Hervé Poussineau Signed-off-by: Hervé Poussineau Reviewed-by: David Gibson [dwg: Added CONFIG_RS6000_MC to ppc64 or it breaks testcases] Signed-off-by: David Gibson --- default-configs/ppc-softmmu.mak | 1 + default-configs/ppc64-softmmu.mak | 1 + hw/ppc/Makefile.objs

[Qemu-devel] [PULL 063/107] target-ppc: Add xsaddqp instructions

2017-02-01 Thread David Gibson
From: Bharata B Rao xsaddqp: VSX Scalar Add Quad-Precision Signed-off-by: Bharata B Rao Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/fpu_helper.c | 36 target/ppc/helper.h | 1 + target/ppc/inte

[Qemu-devel] [PULL 058/107] target-ppc: Add xsxsigdp instruction

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania xsxsigdp: VSX Scalar Extract Significand Dual Precision Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/translate/vsx-impl.inc.c | 29 + target/ppc/translate/vsx-ops.inc.c | 1 + 2 files changed, 30 insertions(+

[Qemu-devel] [PULL 041/107] qtest: add ivshmem-test for ppc64

2017-02-01 Thread David Gibson
From: Laurent Vivier The test has been converted to use libqos, we can now use it on ppc64. We also make the test fail on all other architectures. As libqos on ppc64 is not able to manage hotplug and IRQ/MSI, we disable this part in the test on ppc64. Signed-off-by: Laurent Vivier [dwg: Make te

[Qemu-devel] [PULL 048/107] prep: add PReP System I/O

2017-02-01 Thread David Gibson
From: Hervé Poussineau This device is a partial duplicate of System I/O device available in hw/ppc/prep.c This new one doesn't have all the Motorola-specific registers. The old one should be deprecated and removed with the 'prep' machine. Partial documentation available at ftp://ftp.software.ib

[Qemu-devel] [PULL 056/107] target-ppc: Add xsxexpdp instruction

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania xsxexpdp: VSX Scalar Extract Exponent Dual Precision Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/translate/vsx-impl.inc.c | 13 + target/ppc/translate/vsx-ops.inc.c | 4 2 files changed, 17 insertions(+) diff --git a/

[Qemu-devel] [PULL 065/107] target-ppc: Add xscvqpdp instruction

2017-02-01 Thread David Gibson
From: Bharata B Rao xscvqpdp: VSX Scalar round & Convert Quad-Precision format to Double-Precision format Signed-off-by: Bharata B Rao Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/fpu_helper.c | 28 target/pp

[Qemu-devel] [PULL 066/107] ppc: Prevent inifnite loop in decrementer auto-reload.

2017-02-01 Thread David Gibson
From: Roman Kapl If the DECAR register is set to 0, QEMU tries to reload the decrementer with zero in an inifinite loop. According to PPC documentation, the decrementer is triggered on 1->0 transition, so avoid reloading the decrementer if if is already zero. The problem does not manifest under

[Qemu-devel] [PULL 030/107] target-ppc: implement stxvll instructions

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania stxvll: Store VSX Vector Left-justified with Length Vector (8-bit elements) in BE/LE: +---+---+---+---+---+---+---+---+---+---+---+---+---+---+--+--+ |“T”|“h”|“i”|“s”|“ ”|“i”|“s”|“ ”|“a”|“ ”|“T”|“E”|“S”|“T”|00|00| +---+---+---+---+---+---+---+---+---+---+---+---+---+---+-

[Qemu-devel] [PULL 045/107] hw/ppc: QOM'ify spapr_vio.c

2017-02-01 Thread David Gibson
From: xiaoqiang zhao Drop the old and empty SysBus init Signed-off-by: xiaoqiang zhao Signed-off-by: David Gibson --- hw/ppc/spapr_vio.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/hw/ppc/spapr_vio.c b/hw/ppc/spapr_vio.c index cc1e09c..8bfc5f9 100644 --- a/hw/ppc/spapr_vio.

[Qemu-devel] [PULL 055/107] target-ppc: Use correct precision for FPRF setting

2017-02-01 Thread David Gibson
From: Bharata B Rao Use correct FP precision when setting FPRF in FP conversion helpers instead of always assuming float64 precision. Signed-off-by: Bharata B Rao Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/fpu_helper.c | 4 ++-- target/ppc/internal.h | 1 +

[Qemu-devel] [PULL 040/107] qtest: convert ivshmem-test to use libqos

2017-02-01 Thread David Gibson
From: Laurent Vivier This will allow to use it with ppc64. Signed-off-by: Laurent Vivier Signed-off-by: David Gibson --- tests/ivshmem-test.c | 31 +-- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/tests/ivshmem-test.c b/tests/ivshmem-test.c index

[Qemu-devel] [PULL 044/107] hw/ppc: QOM'ify ppce500_spin.c

2017-02-01 Thread David Gibson
From: xiaoqiang zhao Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao Signed-off-by: David Gibson --- hw/ppc/ppce500_spin.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/hw/ppc/ppce500_spin.c b/hw/ppc/ppce500_spin.

[Qemu-devel] [PULL 043/107] hw/ppc: QOM'ify e500.c

2017-02-01 Thread David Gibson
From: xiaoqiang zhao Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao Signed-off-by: David Gibson --- hw/ppc/e500.c | 17 - 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c index cf8b122..792bd79

[Qemu-devel] [PULL 052/107] target-ppc: Replace isden by float64_is_zero_or_denormal

2017-02-01 Thread David Gibson
From: Bharata B Rao Replace isden() by float64_is_zero_or_denormal() so that code in helper_compute_fprf() can be reused to work with float128 argument. Signed-off-by: Bharata B Rao Signed-off-by: Nikunj A Dadhania Reviewed-by: David Gibson Signed-off-by: David Gibson --- target/ppc/fpu_hel

[Qemu-devel] [PULL 047/107] target-ppc: Add xxinsertw instruction

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania xxinsertw: VSX Vector Insert Word Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/helper.h | 1 + target/ppc/int_helper.c | 25 + target/ppc/translate/vsx-impl.inc.c | 5 +++-- target/ppc

[Qemu-devel] [PULL 039/107] libqos: fix spapr qpci_map()

2017-02-01 Thread David Gibson
From: Laurent Vivier Signed-off-by: Laurent Vivier Signed-off-by: David Gibson --- tests/libqos/pci-spapr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/libqos/pci-spapr.c b/tests/libqos/pci-spapr.c index 1e5d015..2043f1e 100644 --- a/tests/libqos/pci-spapr.c +

[Qemu-devel] [PULL 034/107] ppc: Rewrite ppc_set_compat()

2017-02-01 Thread David Gibson
This rewrites the ppc_set_compat() function so that instead of open coding the various compatibility modes, it reads the relevant data from a table. This is a first step in consolidating the information on compatibility modes scattered across the code into a single place. It also makes one change

[Qemu-devel] [PULL 042/107] hw/gpio: QOM'ify mpc8xxx.c

2017-02-01 Thread David Gibson
From: xiaoqiang zhao * Drop the old SysBus init function and use instance_init * Change mpc8xxx_gpio_reset to a DeviceClass::reset function Signed-off-by: xiaoqiang zhao Signed-off-by: David Gibson --- hw/gpio/mpc8xxx.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(

[Qemu-devel] [PULL 035/107] ppc: Rewrite ppc_get_compat_smt_threads()

2017-02-01 Thread David Gibson
To continue consolidation of compatibility mode information, this rewrites the ppc_get_compat_smt_threads() function using the table of compatiblity modes in target-ppc/compat.c. It's not a direct replacement, the new ppc_compat_max_threads() function has simpler semantics - it just returns the nu

[Qemu-devel] [PULL 029/107] target-ppc: implement stxvl instruction

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania stxvl: Store VSX Vector with Length Vector (8-bit elements) in BE: +---+---+---+---+---+---+---+---+---+---+---+---+---+---+--+--+ |“T”|“h”|“i”|“s”|“ ”|“i”|“s”|“ ”|“a”|“ ”|“T”|“E”|“S”|“T”|00|00| +---+---+---+---+---+---+---+---+---+---+---+---+---+---+--+--+ Vector (8-bi

[Qemu-devel] [PULL 046/107] target-ppc: Add xxextractuw instruction

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania xxextractuw: VSX Vector Extract Unsigned Word Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/helper.h | 1 + target/ppc/int_helper.c | 26 ++ target/ppc/translate/vsx-impl.inc.c | 30

[Qemu-devel] [PULL 032/107] prep: do not use global variable to access nvram

2017-02-01 Thread David Gibson
From: Hervé Poussineau Signed-off-by: Hervé Poussineau Signed-off-by: David Gibson --- hw/ppc/prep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c index 054af1e..9fb89d3 100644 --- a/hw/ppc/prep.c +++ b/hw/ppc/prep.c @@ -339,13 +339,13 @@

[Qemu-devel] [PULL 051/107] target-ppc: Use float64 arg in helper_compute_fprf()

2017-02-01 Thread David Gibson
From: Bharata B Rao Use float64 argument instead of unit64_t in helper_compute_fprf() This allows code in helper_compute_fprf() to be reused later to work with float128 argument too. Signed-off-by: Bharata B Rao Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/fpu_

[Qemu-devel] [PULL 036/107] ppc: Validate compatibility modes when setting

2017-02-01 Thread David Gibson
Current ppc_set_compat() will attempt to set any compatiblity mode specified, regardless of whether it's available on the CPU. The caller is expected to make sure it is setting a possible mode, which is awkwward because most of the information to make that decision is at the CPU level. This begin

[Qemu-devel] [PULL 033/107] pseries: Add pseries-2.9 machine type

2017-02-01 Thread David Gibson
Signed-off-by: David Gibson Reviewed-by: Thomas Huth Reviewed-by: Laurent Vivier --- hw/ppc/spapr.c | 23 +-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index f2edbd0..a175609 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.

[Qemu-devel] [PULL 031/107] hw/ppc/spapr: Fix boot path of usb-host storage devices

2017-02-01 Thread David Gibson
From: Thomas Huth When passing through an USB storage device to a pseries guest, it is currently not possible to automatically boot from the device if the "bootindex" property has been specified, too (e.g. when using "-device nec-usb-xhci -device usb-host,hostbus=1,hostaddr=2,bootindex=0" at the

[Qemu-devel] [PULL 038/107] qtest: add display-vga-test to ppc64

2017-02-01 Thread David Gibson
From: Laurent Vivier Only enable for ppc64 in the Makefile, but added code in the file to check cirrus card only on architectures supporting it (alpha, mips, i386, x86_64). Signed-off-by: Laurent Vivier Reviewed-by: Thomas Huth Reviewed-by: Greg Kurz Tested-by: Greg Kurz Signed-off-by: David

[Qemu-devel] [PULL 026/107] target-ppc: Add xxperm and xxpermr instructions

2017-02-01 Thread David Gibson
From: Bharata B Rao xxperm: VSX Vector Permute xxpermr: VSX Vector Permute Right-indexed Signed-off-by: Bharata B Rao Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/fpu_helper.c | 23 +++ target/ppc/helper.h | 2 +

[Qemu-devel] [PULL 028/107] target-ppc: implement lxvll instruction

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania lxvll: Load VSX Vector Left-justified with Length Little/Big-endian Storage: +---+---+---+---+---+---+---+---+---+---+---+---+---+---+--+--+ |“T”|“h”|“i”|“s”|“ ”|“i”|“s”|“ ”|“a”|“ ”|“T”|“E”|“S”|“T”|FF|FF| +---+---+---+---+---+---+---+---+---+---+---+---+---+---+--+--+ Lo

[Qemu-devel] [PULL 027/107] target-ppc: implement lxvl instruction

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania lxvl: Load VSX Vector with Length Little/Big-endian Storage: +---+---+---+---+---+---+---+---+---+---+---+---+---+---+--+--+ |“T”|“h”|“i”|“s”|“ ”|“i”|“s”|“ ”|“a”|“ ”|“T”|“E”|“S”|“T”|FF|FF| +---+---+---+---+---+---+---+---+---+---+---+---+---+---+--+--+ Loading 14 bytes r

[Qemu-devel] [PULL 025/107] target-ppc: implement xscpsgnqp instruction

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania xscpsgnqp: VSX Scalar Copy Sign Quad-Precision Signed-off-by: Nikunj A Dadhania Reviewed-by: Richard Henderson Signed-off-by: David Gibson --- target/ppc/translate/vsx-impl.inc.c | 12 +++- target/ppc/translate/vsx-ops.inc.c | 1 + 2 files changed, 12 insert

[Qemu-devel] [PULL 023/107] target-ppc: Implement bcd_is_valid function

2017-02-01 Thread David Gibson
From: Jose Ricardo Ziviani A function to check if all digits of a given BCD number is valid is here presented because more instructions will need to reuse the same code. Signed-off-by: Jose Ricardo Ziviani Signed-off-by: David Gibson --- target/ppc/int_helper.c | 27 --

[Qemu-devel] [PULL 037/107] qtest: add netfilter tests for ppc64

2017-02-01 Thread David Gibson
From: Laurent Vivier Signed-off-by: Laurent Vivier Reviewed-by: Thomas Huth Reviewed-by: Greg Kurz Tested-by: Greg Kurz Signed-off-by: David Gibson --- tests/Makefile.include | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/Makefile.include b/tests/Makefile.include index 33b4f88

[Qemu-devel] [PULL 017/107] ppc: Clean up and QOMify hypercall emulation

2017-02-01 Thread David Gibson
The pseries machine type is a bit unusual in that it runs a paravirtualized guest. The guest expects to interact with a hypervisor, and qemu emulates the functions of that hypervisor directly, rather than executing hypervisor code within the emulated system. To implement this in TCG, we need to i

[Qemu-devel] [PULL 015/107] pseries: Always use core objects for CPU construction

2017-02-01 Thread David Gibson
Currently the pseries machine has two paths for constructing CPUs. On newer machine type versions, which support cpu hotplug, it constructs cpu core objects, which in turn construct CPU threads. For older machine versions it individually constructs the CPU threads. This division is going to make

[Qemu-devel] [PULL 009/107] target-ppc: implement lxv/lxvx and stxv/stxvx

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania lxv: Load VSX Vector lxvx: Load VSX Vector Indexed Little/Big-endian Storage +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ |F0|F1|F2|F3|F4|F5|F6|F7|E0|E1|E2|E3|E4|E5|E6|E7| +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ Vector load results:

[Qemu-devel] [PULL 018/107] ppc: Rename cpu_version to compat_pvr

2017-02-01 Thread David Gibson
The 'cpu_version' field in PowerPCCPU is badly named. It's named after the 'cpu-version' device tree property where it is advertised, but that meaning may not be obvious in most places it appears. Worse, it doesn't even really correspond to that device tree property. The property contains either

[Qemu-devel] [PULL 016/107] pseries: Make cpu_update during CAS unconditional

2017-02-01 Thread David Gibson
spapr_h_cas_compose_response() includes a cpu_update parameter which controls whether it includes updated information on the CPUs in the device tree fragment returned from the ibm,client-architecture-support (CAS) call. Providing the updated information is essential when CAS has negotiated compati

[Qemu-devel] [PULL 022/107] target-ppc: implement xsabsqp/xsnabsqp instruction

2017-02-01 Thread David Gibson
xsabsqp: VSX Scalar Absolute Quad-Precision xsnabsqp: VSX Scalar Negative Absolute Quad-Precision Signed-off-by: Nikunj A Dadhania Reviewed-by: Richard Henderson Signed-off-by: David Gibson --- target/ppc/translate/vsx-impl.inc.c | 35 +++ target/ppc/translate/

[Qemu-devel] [PULL 024/107] target-ppc: implement xsnegqp instruction

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania xsnegqp: VSX Scalar Negate Quad-Precision Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target/ppc/translate/vsx-impl.inc.c | 4 target/ppc/translate/vsx-ops.inc.c | 1 + 2 files changed, 5 insertions(+) diff --git a/target/ppc/translate/vsx-i

[Qemu-devel] [PULL 008/107] target-ppc: implement stxsd and stxssp

2017-02-01 Thread David Gibson
From: Nikunj A Dadhania stxsd: Store VSX Scalar Dword stxssp: Store VSX Scalar SP Moreover, DQ-Form/DS-FORM instructions shares the same primary opcode(0x3D). For DQ-FORM bits 29:31 are used, for DS-FORM bits 30:31 are used. Common routine to decode primary opcode(0x3D) - ds-form/dq-form instru

[Qemu-devel] [PULL 019/107] ppc/spapr: implement H_SIGNAL_SYS_RESET

2017-02-01 Thread David Gibson
From: Nicholas Piggin The H_SIGNAL_SYS_RESET hcall allows a guest CPU to raise a system reset exception on CPUs within the same guest -- all CPUs, all-but-self, or a specific CPU (including self). This has not made its way to a PAPR release yet, but we have an hcall number assigned. H_SIGNAL_

  1   2   3   4   >