Re: [Qemu-devel] [PATCH 28/32] ppc: Avoid double translation for lvx/lvxl/stvx/stvxl

2016-07-28 Thread Benjamin Herrenschmidt
On Fri, 2016-07-29 at 09:46 +0530, Richard Henderson wrote: >  > But that doesn't yet make the leap to 128-bit types in tcg. > I was going to raise that topic during the 2.8 cycle, since as a > consequence I want to drop support for 32-bit hosts, at least for 64- > bit guests, and maybe entirely.

[Qemu-devel] [PULL 1/6] spapr: init CPUState->cpu_index with index relative to core-id

2016-07-28 Thread David Gibson
From: Igor Mammedov It will enshure that cpu_index for a given cpu stays the same regardless of the order cpus has been created/deleted and so it would be possible to migrate QEMU instance with out of order created CPU. Signed-off-by: Igor Mammedov Signed-off-by: David Gibson --- hw/ppc/spapr

[Qemu-devel] [PULL 2/6] Revert "spapr: Ensure CPU cores are added contiguously and removed in LIFO order"

2016-07-28 Thread David Gibson
This reverts commit 5cbc64de25973e9129c5a7897734a06ac64b9aff. Now that we have stable cpu_index values for pseries-2.7 (and future) machine types, we can now safely allow hotplug and unplug in any order. Conflicts: hw/ppc/spapr_cpu_core.c Some conflicts on revert due to some small change

Re: [Qemu-devel] [PATCH] tests: add drive_del-test to ppc/ppc64

2016-07-28 Thread David Gibson
On Thu, Jul 28, 2016 at 05:18:09PM +0200, Laurent Vivier wrote: > Signed-off-by: Laurent Vivier > --- > tests/Makefile.include | 2 ++ > tests/drive_del-test.c | 3 ++- > 2 files changed, 4 insertions(+), 1 deletion(-) Applied to ppc-for-2.7, thanks. > > diff --git a/tests/Makefile.include b/t

[Qemu-devel] [PULL 6/6] tests: add drive_del-test to ppc/ppc64

2016-07-28 Thread David Gibson
From: Laurent Vivier Signed-off-by: Laurent Vivier Signed-off-by: David Gibson --- tests/Makefile.include | 2 ++ tests/drive_del-test.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Makefile.include b/tests/Makefile.include index 4b5123b..ebecfa4 100644 --- a/te

Re: [Qemu-devel] [PATCH v2 0/8] POWER9 TCG enablements - part2

2016-07-28 Thread David Gibson
On Thu, Jul 28, 2016 at 11:44:10PM +0530, Nikunj A Dadhania wrote: > This series contains 11 new instructions for POWER9 described in ISA3.0. > > Patches: > 01-02: Changes following instructions: > divd[u][o][.]: Divide Doubleword Signed/Unsigned > divw[u][o][.]: Divide Word Signed/U

[Qemu-devel] [PULL 4/6] ppc: Fix fault PC reporting for lve*/stve* VMX instructions

2016-07-28 Thread David Gibson
From: Benjamin Herrenschmidt We forgot to do gen_update_nip() for these like we do with other helpers. Fix this, but in a more efficient way by passing the RA to the accessors instead so the overhead is only taken on faults. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: David Gibson ---

[Qemu-devel] [PULL 3/6] test: port postcopy test to ppc64

2016-07-28 Thread David Gibson
From: "lviv...@redhat.com" As userfaultfd syscall is available on powerpc, migration postcopy can be used. This patch adds the support needed to test this on powerpc, instead of using a bootsector to run code to modify memory, we use a FORTH script in "boot-command" property. As spapr machine d

[Qemu-devel] [PULL 5/6] spapr: Prevent boot CPU core removal

2016-07-28 Thread David Gibson
From: Bharata B Rao Boot CPU is assumed to be always present in QEMU code. So until that assumptions are gone, deny removal request. In another words, QEMU won't support boot CPU core hot-unplug. Signed-off-by: Bharata B Rao [dwg: Tweaked error message for clarity] Signed-off-by: David Gibson

[Qemu-devel] [PULL 0/6] ppc-for-2.7 queue 20160729

2016-07-28 Thread David Gibson
The following changes since commit 21a21b853a1bb606358af61e738abfb9aecbd720: Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into staging (2016-07-27 18:18:21 +0100) are available in the git repository at: git://github.com/dgibson/qemu.git tags/ppc-for-2.7-20160729 fo

Re: [Qemu-devel] [PATCH 28/32] ppc: Avoid double translation for lvx/lvxl/stvx/stvxl

2016-07-28 Thread Benjamin Herrenschmidt
On Fri, 2016-07-29 at 14:40 +1000, Benjamin Herrenschmidt wrote: > On Fri, 2016-07-29 at 13:34 +1000, David Gibson wrote: > > > >   > > What should I do with this in the short term?  Leave it in > > ppc-for-2.8, or remove it for now pending possible changes? > > I think I'm still measuring a perf

Re: [Qemu-devel] [PATCH v1 4/8] target-ppc: add vabsdu[b, h, w] instructions

2016-07-28 Thread David Gibson
On Fri, Jul 29, 2016 at 09:53:14AM +0530, Richard Henderson wrote: > On Jul 29, 2016 09:16, David Gibson > wrote: > > So, I noticed this and was also concerned, but I more or less > > convinced myself that it would still work, by the magic of 2's > > complement, as lo

Re: [Qemu-devel] [PATCH v5] virtio-crypto: Add virtio crypto device specification

2016-07-28 Thread Michael S. Tsirkin
On Thu, Jul 28, 2016 at 05:28:33AM +, Zeng, Xin wrote: > On Thursday, July 28, 2016 10:51 AM Gonglei (Arei) Wrote: > > > > Changes from v4: > > > > - introduce crypto services into virtio crypto device. The services > > > >currently defined are CIPHER, MAC, HASH, AEAD, KDF, ASYM, > > > PR

Re: [Qemu-devel] [PATCH] ppc: Some FPU helper functions must be inline

2016-07-28 Thread David Gibson
On Fri, Jul 29, 2016 at 02:37:07PM +1000, Benjamin Herrenschmidt wrote: > On Fri, 2016-07-29 at 12:44 +1000, David Gibson wrote: > > On Fri, Jul 29, 2016 at 08:33:45AM +1000, Benjamin Herrenschmidt > > wrote: > > > > > > float_invalid_op_excp() and float_check_status() must be inline > > > due to

Re: [Qemu-devel] target-ppc: SPR_BOOKE_ESR not set on FP exceptions

2016-07-28 Thread David Gibson
On Thu, Jul 28, 2016 at 06:32:27PM -0500, alar...@ddci.com wrote: > The target-ppc/excp_helper.c:powerpc_excp() case POWERPC_EXCP_FP fails > to set "env->spr[SPR_BOOKE_ESR] = ESR_FP;". I can submit a patch for > that, Ok, please do. > or anyone can add it, but I notice that in the other cases wh

[Qemu-devel] [Bug 1581936] Re: Frozen Windows 7 VMs with VGA CVE-2016-3712 fix (2.6.0 and 2.5.1.1)

2016-07-28 Thread tkr
** Changed in: qemu Status: Confirmed => Fix Committed ** Changed in: qemu Status: Fix Committed => Confirmed ** Also affects: qemu (Fedora) via https://bugzilla.redhat.com/cgi-bin/bugreport.cgi?bug=1339267 Importance: Unknown Status: Unknown ** No longer affects: qemu

Re: [Qemu-devel] [PATCH] RFC: pci-bus: add property ownership on bsel

2016-07-28 Thread Igor Mammedov
On Thu, 28 Jul 2016 17:43:37 +0400 Marc-André Lureau wrote: > Hi > > On Thu, Jul 28, 2016 at 3:29 PM, Igor Mammedov wrote: > > On Thu, 28 Jul 2016 15:13:57 +0400 > > marcandre.lur...@redhat.com wrote: > > > >> From: Marc-André Lureau > >> > >> The property should own the allocated and unrefe

Re: [Qemu-devel] [PATCH v5 0/3] Dynamic module loading for block drivers

2016-07-28 Thread Fam Zheng
On Mon, 07/25 09:56, Colin Lord wrote: > >> - Remove dmg from block-obj-m since it is not a target of the > >> modularization effort. > > > > Hm, I'm afraid I don't quite understand the reasoning behind this. > > Intuitively, I'd say "Doesn't matter, it was already modular, so what > > prevents

Re: [Qemu-devel] [PATCH 28/32] ppc: Avoid double translation for lvx/lvxl/stvx/stvxl

2016-07-28 Thread Benjamin Herrenschmidt
On Fri, 2016-07-29 at 09:46 +0530, Richard Henderson wrote: > The form of declaration you're using takes care of that.  In order to > not clobber, you have to use DEF_HELPER_FLAGS with *NO_RWG*. BTW. Is that stuff (and the various flags here) somewhat documented anywhere ? :-) Cheers, Ben.

Re: [Qemu-devel] [PATCH RFC 1/1] arm64: add an option to turn on/off vpmu support

2016-07-28 Thread Andrew Jones
On Thu, Jul 28, 2016 at 11:38:16AM -0500, Wei Huang wrote: > This patch adds a pmu=[on/off] option to enable/disable vpmu support > in guest vm. There are several reasons to justify this option. First > vpmu can be problematic for cross-migration between different SoC as > perf counters is architec

[Qemu-devel] [PATCH for-2.7] wxx: Fix compilation of host-libusb.c

2016-07-28 Thread Stefan Weil
libusb.h uses the WINAPI calling convention for all function callbacks. Cross compilation with Mingw-w64 on Cygwin fails when this calling convention is missing. Signed-off-by: Stefan Weil --- hw/usb/host-libusb.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/usb

<    1   2   3   4