Re: [Qemu-devel] [PATCH] configure: Automatically select GTK+ 3.0 if GTK+ 2.0 is unavailable

2014-05-19 Thread Gerd Hoffmann
Hi, +if test $gtkabi = ; then +# The GTK ABI was not specified explicitly, so try whether 2.0 is available. +# Use 3.0 as a fallback if that is available. +if $pkg_config --exists gtk+-2.0 = 2.18.0; then +gtkabi=2.0 +elif $pkg_config --exists gtk+-3.0 = 3.0.0;

[Qemu-devel] [PATCH] virtio-balloon: return empty data when no stats are available

2014-05-19 Thread Ján Tomko
If the guest hasn't updated the stats yet, instead of returning an error, return '-1' for the stats and '0' as 'last-update'. This lets applications ignore this without parsing the error message. Related libvirt patch and discussion:

Re: [Qemu-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-19 Thread Gerd Hoffmann
Hi, +/* + * Some video bioses and gfx drivers will assume the bdf of IGD is 00:02.0. + * So user need to set it to 00:02.0 in Xen configure file explicitly, + * otherwise IGD will fail to work. + */ +pci_reserve_pci_devfn(b, PCI_DEVFN(2, 0)); That is asking for

Re: [Qemu-devel] [libvirt] [PATCHv2] Don't log an internal error when the guest hasn't updated balloon stats

2014-05-19 Thread Ján Tomko
On 05/16/2014 03:13 PM, Luiz Capitulino wrote: On Fri, 16 May 2014 00:11:24 -0600 Eric Blake ebl...@redhat.com wrote: Is no stats yet really an error? This is a special case where the guest hasn't ever filled QEMU with balloon stats. There are two possible cases. Either the guest hasn't

Re: [Qemu-devel] [PATCH v2] Add remove_boot_device_path() function for hot-unplug device

2014-05-19 Thread Markus Armbruster
Jun Li junm...@gmail.com writes: On 05/15/2014 11:07 PM, Michael S. Tsirkin wrote: On Wed, Apr 16, 2014 at 10:20:57PM +0800, Jun Li wrote: [...] diff --git a/vl.c b/vl.c index 9975e5a..1713c68 100644 --- a/vl.c +++ b/vl.c @@ -1184,6 +1184,22 @@ void add_boot_device_path(int32_t bootindex,

[Qemu-devel] [PATCH] qga: Fix handle fd leak in acquire_privilege()

2014-05-19 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com token should be closed in all conditions. So move CloseHandle(token) to out branch. Signed-off-by: Wang Rui moon.wang...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- qga/commands-win32.c | 6 -- 1 file changed, 4 insertions(+), 2

Re: [Qemu-devel] [PATCH] configure: Automatically select GTK+ 3.0 if GTK+ 2.0 is unavailable

2014-05-19 Thread Stefan Weil
Am 19.05.2014 08:19, schrieb Gerd Hoffmann: Hi, +if test $gtkabi = ; then +# The GTK ABI was not specified explicitly, so try whether 2.0 is available. +# Use 3.0 as a fallback if that is available. +if $pkg_config --exists gtk+-2.0 = 2.18.0; then +gtkabi=2.0 +

Re: [Qemu-devel] [Qemu-trivial] [PATCH] arch_init: Simplify code for load_xbzrle()

2014-05-19 Thread Michael Tokarev
Meanwhile the original version has been merged from juanquintela/tags/migration/20140515 in the original form, so the point is moot already. Juan, can you please indicate that you applied something, instead of just giving a Reviewed-by? Thanks, /mjt 18.05.2014 14:53, Chen Gang wrote: On

Re: [Qemu-devel] [Xen-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-19 Thread Fabio Fantoni
Il 19/05/2014 08:44, Gerd Hoffmann ha scritto: Hi, +/* + * Some video bioses and gfx drivers will assume the bdf of IGD is 00:02.0. + * So user need to set it to 00:02.0 in Xen configure file explicitly, + * otherwise IGD will fail to work. + */ +

Re: [Qemu-devel] [Qemu-trivial] [PATCH] configure: Automatically select GTK+ 3.0 if GTK+ 2.0 is unavailable

2014-05-19 Thread Michael Tokarev
17.05.2014 18:29, Stefan Weil wrote: The configure option --with-gtkabi=3.0 is still supported, but no longer needed when GTK+-2.0 is missing. When no GTK+ ABI is selected by the user, configure first tries 2.0, then 3.0. For some platforms (e.g. Windows) newer binaries of GTK+ are only

Re: [Qemu-devel] [PATCH] bswap.h: Rename ldl_p, stl_p, etc to ldl_he_p, stl_he_p, etc

2014-05-19 Thread Michael Tokarev
15.05.2014 22:22, Richard Henderson wrote: On 05/15/2014 11:13 AM, Peter Maydell wrote: On 2 May 2014 19:48, Richard Henderson r...@twiddle.net wrote: On 05/02/2014 10:32 AM, Peter Maydell wrote: We have an unfortunate naming clash between the functions ldl_p, stl_p, etc defined in bswap.h

Re: [Qemu-devel] [PATCH] configure: Automatically select GTK+ 3.0 if GTK+ 2.0 is unavailable

2014-05-19 Thread Gerd Hoffmann
Hi, Shouldn't we probe for gtk3 first? That sounds reasonable, but would result in a non trivial change for all developers who build on a system with both GTK versions. I tried to preserve the current default (2.0) as far as possible. The differences between gtk2 + gtk3 are not that big,

Re: [Qemu-devel] [Qemu-trivial] [PATCH 1/2] nbd: Don't export a block device with no medium.

2014-05-19 Thread Michael Tokarev
18.05.2014 14:50, Hani Benhabiles wrote: The device is exported with erroneous values and can't be read. Before the patch: $ sudo nbd-client localhost -p 10809 /dev/nbd0 -name floppy0 Negotiation: ..size = 17592186044415MB bs=1024, sz=18446744073709547520 bytes $ sudo mount /dev/nbd0

Re: [Qemu-devel] [Xen-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-19 Thread Zhang, Yang Z
Fabio Fantoni wrote on 2014-05-19: Il 19/05/2014 08:44, Gerd Hoffmann ha scritto: Hi, +/* + * Some video bioses and gfx drivers will assume the bdf of IGD is 00:02.0. + * So user need to set it to 00:02.0 in Xen configure file explicitly, + * otherwise IGD will fail to

Re: [Qemu-devel] OS X compile fix

2014-05-19 Thread Peter Maydell
On 19 May 2014 01:06, Peter Bartoli pe...@bartoli.org wrote: On May 18, 2014, at 4:09 PM, Peter Maydell peter.mayd...@linaro.org wrote: and looking at the preprocessor output it's defined in /usr/lib/clang/5.0/include/limits.h Thanks, Peter ... I don't have a /usr/lib/clang ... where are

[Qemu-devel] [PATCH RFC V2 0/8] virtio: migrate new properties

2014-05-19 Thread Greg Kurz
Hi, This patch set tries to address comments from the initial review. For this round, I have focused on two changes: - as suggested by Andreas, we now call the device specific code from the generic code to ease the implementation of future devices. This is achieved with the addition of

[Qemu-devel] [PATCH RFC 2/8] virtio-net: implement per-device migration calls

2014-05-19 Thread Greg Kurz
Signed-off-by: Greg Kurz gk...@linux.vnet.ibm.com --- hw/net/virtio-net.c | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index e0dc544..d319ac2 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@

[Qemu-devel] [PATCH RFC 3/8] virtio-blk: implement per-device migration calls

2014-05-19 Thread Greg Kurz
Signed-off-by: Greg Kurz gk...@linux.vnet.ibm.com --- hw/block/virtio-blk.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index 63d4ccd..a50be54 100644 --- a/hw/block/virtio-blk.c +++

[Qemu-devel] [PATCH RFC 4/8] virtio-serial: implement per-device migration calls

2014-05-19 Thread Greg Kurz
Signed-off-by: Greg Kurz gk...@linux.vnet.ibm.com --- hw/char/virtio-serial-bus.c | 32 +++- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/hw/char/virtio-serial-bus.c b/hw/char/virtio-serial-bus.c index b0f322a..ce336a0 100644 ---

[Qemu-devel] [PATCH RFC 1/8] virtio: introduce device specific migration calls

2014-05-19 Thread Greg Kurz
In order to migrate virtio subsections, we need the device specific code to be called from the common migration code. This patch introduces load and save methods for this purpose. Suggested-by: Andreas Färber afaer...@suse.de Signed-off-by: Greg Kurz gk...@linux.vnet.ibm.com ---

[Qemu-devel] [PATCH RFC 5/8] virtio-balloon: implement per-device migration calls

2014-05-19 Thread Greg Kurz
Signed-off-by: Greg Kurz gk...@linux.vnet.ibm.com --- hw/virtio/virtio-balloon.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c index 6d8ec72..a3a9ac1 100644 --- a/hw/virtio/virtio-balloon.c

[Qemu-devel] [PATCH RFC 6/8] virtio-rng: implement per-device migration calls

2014-05-19 Thread Greg Kurz
While we are here, we also check virtio_load() return value. Signed-off-by: Greg Kurz gk...@linux.vnet.ibm.com --- hw/virtio/virtio-rng.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/hw/virtio/virtio-rng.c b/hw/virtio/virtio-rng.c index 025de81..1356aca

[Qemu-devel] [PATCH RFC 8/8] virtio: add endian-ambivalent support to VirtIODevice

2014-05-19 Thread Greg Kurz
Some CPU families can dynamically change their endianness. This means we can have little endian ppc or big endian arm guests for example. This has an impact on legacy virtio data structures since they are target endian. We hence introduce a new property to track the endianness of each virtio

Re: [Qemu-devel] [PATCH 0/8] s390: pending patches

2014-05-19 Thread Cornelia Huck
On Fri, 16 May 2014 15:54:31 +0200 Andreas Färber afaer...@suse.de wrote: Am 16.05.2014 14:41, schrieb Cornelia Huck: Cornelia Huck (4): s390x: split flic into kvm and non-kvm parts s390x: Add I/O adapter registration. s390x/virtio-ccw: reference-counted indicators

[Qemu-devel] [PATCH RFC 7/8] virtio: add subsections to the migration stream

2014-05-19 Thread Greg Kurz
There is a need to add some more fields to VirtIODevice that should be migrated (broken status, endianness). The problem is that we do not want to break compatibility while adding a new feature... This issue has been addressed in the generic VMState code with the use of optional subsections. As a

Re: [Qemu-devel] [PATCH 8/9] spapr: Implement processor compatibility in ibm, client-architecture-support

2014-05-19 Thread Alexander Graf
On 17.05.14 03:45, Alexey Kardashevskiy wrote: On 05/17/2014 06:46 AM, Alexander Graf wrote: On 16.05.14 17:57, Alexey Kardashevskiy wrote: On 05/17/2014 12:16 AM, Alexander Graf wrote: On 15.05.14 13:28, Alexey Kardashevskiy wrote: Modern Linux kernels support last POWERPC CPUs so when a

Re: [Qemu-devel] [RFC v1 11/25] irq: Slim conversion of qemu_irq to QOM [WIP]

2014-05-19 Thread Andreas Färber
Am 19.05.2014 03:52, schrieb Peter Crosthwaite: On Fri, May 16, 2014 at 11:56 AM, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: From: Andreas Färber afaer...@suse.de As a prequel to any big Pin refactoring plans, do an in-place conversion of qemu_irq to an Object, so that we can

Re: [Qemu-devel] [PATCH] macio: handle non-block ATAPI DMA transfers

2014-05-19 Thread Alexander Graf
On 18.05.14 14:20, Mark Cave-Ayland wrote: Currently the macio DMA routines assume that all DMA requests are for read/write block transfers. This is not always the case for ATAPI, for example when requesting a TOC where the response is generated directly in the IDE buffer. Detect these

[Qemu-devel] [PATCH v3 00/22] target-arm: Preparations for A64 EL2 and 3

2014-05-19 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Hi, I've been doing some work on modeling parts of EL2 and 3 + some of the system-wide virtualization features for ARMv8. A lot is missing but I've got a series with enough to for example run KVM A64 guests on top of EL3 firmware inside emulated

[Qemu-devel] [PATCH v3 01/22] target-arm: Make elr_el1 an array

2014-05-19 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com No functional change. Prepares for future additions of the EL2 and 3 versions of this reg. Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu.h| 2 +- target-arm/helper-a64.c | 4 ++-- target-arm/helper.c |

[Qemu-devel] [PATCH v3 03/22] target-arm: c12_vbar - vbar_el[]

2014-05-19 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com No functional change. Preparation for adding EL2 and 3 versions of this reg. Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu.h| 2 +- target-arm/helper-a64.c | 2 +- target-arm/helper.c | 6 +++--- 3

[Qemu-devel] [PATCH v3 02/22] target-arm: Make esr_el1 an array

2014-05-19 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com No functional change. Prepares for future addtion of EL2 and 3 versions of this reg. Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu.h| 2 +- target-arm/helper-a64.c | 4 ++-- target-arm/helper.c | 10

[Qemu-devel] [PATCH v3 04/22] target-arm: Add arm_el_to_mmu_idx()

2014-05-19 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Maps a given EL to the corresponding MMU index. Reviewed-by: Peter Crosthwaite peter.crosthwa...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu.h | 22 +-

[Qemu-devel] [PATCH v3 05/22] target-arm: Move get_mem_index to translate.h

2014-05-19 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com So that it can be shared with the A32 code in the future. Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/translate-a64.c | 5 - target-arm/translate.h | 5 + 2 files changed, 5 insertions(+), 5 deletions(-)

[Qemu-devel] [PATCH v3 06/22] target-arm: A64: Add SP entries for EL2 and 3

2014-05-19 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu.h | 2 +- target-arm/machine.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index b6ad913..95665b0

[Qemu-devel] [PATCH v3 07/22] target-arm: A64: Add ELR entries for EL2 and 3

2014-05-19 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu.h | 2 +- target-arm/machine.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 95665b0..817d057

Re: [Qemu-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-19 Thread Chen, Tiejun
-Original Message- From: Gerd Hoffmann [mailto:kra...@redhat.com] Sent: Monday, May 19, 2014 2:45 PM To: Chen, Tiejun Cc: anthony.per...@citrix.com; stefano.stabell...@eu.citrix.com; m...@redhat.com; kelly.zyta...@amd.com; peter.mayd...@linaro.org; xen-de...@lists.xensource.com;

[Qemu-devel] [PATCH v3 08/22] target-arm: Add SPSR entries for EL2/HYP and EL3/MON

2014-05-19 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu.h | 4 +++- target-arm/helper.c| 4 target-arm/machine.c | 6 +++--- target-arm/translate.c | 4 ++-- 4 files changed, 12 insertions(+), 6 deletions(-)

[Qemu-devel] [PATCH v3 09/22] target-arm: A64: Introduce aarch64_banked_spsr_index()

2014-05-19 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Add aarch64_banked_spsr_index(), used to map an Exception Level to an index in the banked_spsr array. Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/helper-a64.c | 2 +- target-arm/internals.h | 14 ++

[Qemu-devel] [PATCH v3 10/22] target-arm: Add a feature flag for EL2

2014-05-19 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Reviewed-by: Peter Crosthwaite peter.crosthwa...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index

[Qemu-devel] [PATCH v3 11/22] target-arm: Add a feature flag for EL3

2014-05-19 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Reviewed-by: Peter Crosthwaite peter.crosthwa...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index

[Qemu-devel] [PATCH v3 12/22] target-arm: Register EL2 versions of ELR and SPSR

2014-05-19 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/helper.c | 16 1 file changed, 16 insertions(+) diff --git a/target-arm/helper.c b/target-arm/helper.c index 5e2eac3..81de010 100644 ---

[Qemu-devel] [PATCH v3 13/22] target-arm: Register EL3 versions of ELR and SPSR

2014-05-19 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/helper.c | 16 1 file changed, 16 insertions(+) diff --git a/target-arm/helper.c b/target-arm/helper.c index 81de010..cb7c964a 100644 ---

[Qemu-devel] [PATCH v3 15/22] target-arm: A64: Forbid ERET to unimplemented ELs

2014-05-19 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Check for EL2 support before returning to it. Reviewed-by: Peter Crosthwaite peter.crosthwa...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/op_helper.c | 11 +-- 1 file changed, 5 insertions(+), 6

[Qemu-devel] [PATCH v3 14/22] target-arm: A64: Forbid ERET to increase the EL

2014-05-19 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Reviewed-by: Peter Crosthwaite peter.crosthwa...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/op_helper.c | 5 + 1 file changed, 5 insertions(+) diff --git a/target-arm/op_helper.c

[Qemu-devel] [PATCH v3 16/22] target-arm: A64: Generalize ERET to various ELs

2014-05-19 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Adds support for ERET to Aarch64 EL2 and 3. Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/op_helper.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/target-arm/op_helper.c

[Qemu-devel] [PATCH v3 17/22] target-arm: A64: Generalize update_spsel for the various ELs

2014-05-19 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/internals.h | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/target-arm/internals.h b/target-arm/internals.h index c9897c2..564b5fa 100644

Re: [Qemu-devel] [Xen-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-19 Thread Chen, Tiejun
-Original Message- From: Fabio Fantoni [mailto:fabio.fant...@m2r.biz] Sent: Monday, May 19, 2014 3:48 PM To: Gerd Hoffmann; Chen, Tiejun Cc: peter.mayd...@linaro.org; xen-de...@lists.xensource.com; m...@redhat.com; Kay, Allen M; stefano.stabell...@eu.citrix.com;

[Qemu-devel] [PATCH v3 19/22] target-arm: A64: Register VBAR_EL2

2014-05-19 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu.h| 2 +- target-arm/helper.c | 20 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index

[Qemu-devel] [PATCH v3 21/22] RFC: target-arm: A32: Use get_mem_index for load/stores

2014-05-19 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Avoid using IS_USER directly as the MMU-idx to simplify future changes to the MMU layout. Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/translate.c | 220 + 1 file

[Qemu-devel] [PATCH v3 18/22] target-arm: Make vbar_write writeback to any CPREG

2014-05-19 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index cb7c964a..5a2073e 100644 ---

[Qemu-devel] [PATCH v3 22/22] RFC: target-arm: Use a 1:1 mapping between EL and MMU index

2014-05-19 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@gmail.com Signed-off-by: Edgar E. Iglesias edgar.igles...@gmail.com --- target-arm/cpu.h | 26 -- target-arm/translate.h | 2 +- 2 files changed, 5 insertions(+), 23 deletions(-) diff --git a/target-arm/cpu.h

Re: [Qemu-devel] [Xen-devel] [v2][PATCH 3/8] xen, gfx passthrough: basic graphics passthrough support

2014-05-19 Thread Chen, Tiejun
-Original Message- From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] Sent: Friday, May 16, 2014 10:06 PM To: Chen, Tiejun Cc: anthony.per...@citrix.com; stefano.stabell...@eu.citrix.com; m...@redhat.com; kelly.zyta...@amd.com; peter.mayd...@linaro.org;

Re: [Qemu-devel] [Xen-devel] [v2][PATCH 2/8] pci: provide a way to reserve some specific devfn

2014-05-19 Thread Chen, Tiejun
-Original Message- From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] Sent: Friday, May 16, 2014 10:07 PM To: Chen, Tiejun Cc: anthony.per...@citrix.com; stefano.stabell...@eu.citrix.com; m...@redhat.com; kelly.zyta...@amd.com; peter.mayd...@linaro.org;

[Qemu-devel] [PATCH v3 20/22] target-arm: A64: Register VBAR_EL3

2014-05-19 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu.h| 2 +- target-arm/helper.c | 5 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 693ad0f..566f9ed

Re: [Qemu-devel] [Xen-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-19 Thread Chen, Tiejun
-Original Message- From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] Sent: Friday, May 16, 2014 10:09 PM To: Chen, Tiejun Cc: anthony.per...@citrix.com; stefano.stabell...@eu.citrix.com; m...@redhat.com; kelly.zyta...@amd.com; peter.mayd...@linaro.org;

Re: [Qemu-devel] [Xen-devel] [v2][PATCH 5/8] xen, gfx passthrough: create intel isa bridge

2014-05-19 Thread Chen, Tiejun
-Original Message- From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] Sent: Friday, May 16, 2014 10:12 PM To: Chen, Tiejun Cc: anthony.per...@citrix.com; stefano.stabell...@eu.citrix.com; m...@redhat.com; kelly.zyta...@amd.com; peter.mayd...@linaro.org;

Re: [Qemu-devel] [PATCH] virtio-net: announce self by guest

2014-05-19 Thread Jason Wang
On 05/18/2014 05:04 PM, Michael S. Tsirkin wrote: On Fri, May 16, 2014 at 01:02:51PM +0800, Jason Wang wrote: On 05/15/2014 05:45 PM, Michael S. Tsirkin wrote: On Thu, May 15, 2014 at 05:22:28PM +0800, Jason Wang wrote: On 05/15/2014 04:28 PM, Michael S. Tsirkin wrote: Thanks, looks good.

Re: [Qemu-devel] [Xen-devel] [v2][PATCH 7/8] xen, gfx passthrough: create host bridge to passthrough

2014-05-19 Thread Chen, Tiejun
-Original Message- From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] Sent: Friday, May 16, 2014 10:37 PM To: Chen, Tiejun Cc: anthony.per...@citrix.com; stefano.stabell...@eu.citrix.com; m...@redhat.com; kelly.zyta...@amd.com; peter.mayd...@linaro.org;

Re: [Qemu-devel] [Xen-devel] [v2][PATCH 6/8] xen, gfx passthrough: support Intel IGD passthrough with VT-D

2014-05-19 Thread Chen, Tiejun
-Original Message- From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] Sent: Friday, May 16, 2014 10:35 PM To: Chen, Tiejun Cc: anthony.per...@citrix.com; stefano.stabell...@eu.citrix.com; m...@redhat.com; kelly.zyta...@amd.com; peter.mayd...@linaro.org;

Re: [Qemu-devel] [PATCH] virtio-net: announce self by guest

2014-05-19 Thread Michael S. Tsirkin
On Mon, May 19, 2014 at 05:34:38PM +0800, Jason Wang wrote: On 05/18/2014 05:04 PM, Michael S. Tsirkin wrote: On Fri, May 16, 2014 at 01:02:51PM +0800, Jason Wang wrote: On 05/15/2014 05:45 PM, Michael S. Tsirkin wrote: On Thu, May 15, 2014 at 05:22:28PM +0800, Jason Wang wrote: On

Re: [Qemu-devel] [PATCH v1 RFC 3/6] KVM: s390: use facilities and cpu_id per KVM

2014-05-19 Thread Michael Mueller
On Fri, 16 May 2014 22:35:34 +0200 Alexander Graf ag...@suse.de wrote: On 16.05.14 18:09, Michael Mueller wrote: On Fri, 16 May 2014 16:49:37 +0200 Alexander Graf ag...@suse.de wrote: On 16.05.14 16:46, Michael Mueller wrote: On Fri, 16 May 2014 13:55:41 +0200 Alexander Graf

Re: [Qemu-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-19 Thread Michael S. Tsirkin
On Mon, May 19, 2014 at 09:25:19AM +, Chen, Tiejun wrote: -Original Message- From: Gerd Hoffmann [mailto:kra...@redhat.com] Sent: Monday, May 19, 2014 2:45 PM To: Chen, Tiejun Cc: anthony.per...@citrix.com; stefano.stabell...@eu.citrix.com; m...@redhat.com;

Re: [Qemu-devel] [RFC v1 11/25] irq: Slim conversion of qemu_irq to QOM [WIP]

2014-05-19 Thread Peter Crosthwaite
On Mon, May 19, 2014 at 7:13 PM, Andreas Färber afaer...@suse.de wrote: Am 19.05.2014 03:52, schrieb Peter Crosthwaite: On Fri, May 16, 2014 at 11:56 AM, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: From: Andreas Färber afaer...@suse.de As a prequel to any big Pin refactoring plans,

Re: [Qemu-devel] [PATCHv5 0/3] block: optimize zero writes with bdrv_write_zeroes

2014-05-19 Thread Kevin Wolf
Am 18.05.2014 um 00:58 hat Peter Lieven geschrieben: this series tries to optimize zero write requests by automatically using bdrv_write_zeroes if it is supported by the format. More details can be found in the commit message to patch 3. Thanks, fixed up some formatting and applied to the

Re: [Qemu-devel] [PATCH v1 RFC 3/6] KVM: s390: use facilities and cpu_id per KVM

2014-05-19 Thread Alexander Graf
On 19.05.14 12:13, Michael Mueller wrote: On Fri, 16 May 2014 22:35:34 +0200 Alexander Graf ag...@suse.de wrote: On 16.05.14 18:09, Michael Mueller wrote: On Fri, 16 May 2014 16:49:37 +0200 Alexander Graf ag...@suse.de wrote: On 16.05.14 16:46, Michael Mueller wrote: On Fri, 16 May 2014

Re: [Qemu-devel] [PATCH v1 RFC 6/6] KVM: s390: add cpu model support

2014-05-19 Thread Michael Mueller
On Fri, 16 May 2014 22:31:12 +0200 Alexander Graf ag...@suse.de wrote: On 16.05.14 17:39, Michael Mueller wrote: On Fri, 16 May 2014 14:08:24 +0200 Alexander Graf ag...@suse.de wrote: On 13.05.14 16:58, Michael Mueller wrote: This patch enables cpu model support in kvm/s390 via the

Re: [Qemu-devel] [PATCH v3 1/3] SMBIOS: Fix endian-ness when populating fields wider than 8-bit

2014-05-19 Thread Michael S. Tsirkin
On Tue, May 13, 2014 at 05:16:07PM -0400, Gabriel L. Somlo wrote: When i386 guests are emulated on big endian hosts, make sure fields wider than 8 bits are populated safely via cpu_to_le*(). Signed-off-by: Gabriel Somlo so...@cmu.edu Reviewed-by: Michael S. Tsirkin m...@redhat.com ---

Re: [Qemu-devel] [PATCH v3 0/3] SMBIOS cleanup round

2014-05-19 Thread Michael S. Tsirkin
On Tue, May 13, 2014 at 05:16:06PM -0400, Gabriel L. Somlo wrote: Changelog: v3: - endian-ness fix (1/3) now correctly handles cpuid version and features - included documentation (qemu-options.hx) for type 0 uefi flag (2/3) - fixed type 17 field sizes (word means 16 bits, not 32 :) :)

Re: [Qemu-devel] [PATCH v3 2/3] SMBIOS: Update Type 0 struct generator for machines = 2.1

2014-05-19 Thread Michael S. Tsirkin
On Tue, May 13, 2014 at 05:16:08PM -0400, Gabriel L. Somlo wrote: A type 0 (bios info) smbios structure is only generated if explicitly requested on the command line. This patch updates the mechanism for generating this type of structure as follows: - convert bios_characteristics field to

Re: [Qemu-devel] target-sparc has inverse cwp logic for SAVE/RESTORE?

2014-05-19 Thread Mark Cave-Ayland
On 18/05/14 17:06, Olivier Danet wrote: The problem may be related to the fact that the 32bits SPARCv8 and 64bits SPARCv9 work in opposite directions ! SparcV9 standard, page 360/399 : The SPARC-V9 CWP register is incremented during a SAVE instruction and decremented during a RESTORE

Re: [Qemu-devel] [PATCH v3 3/3] SMBIOS: Fix type 17 v2.7+ field sizes

2014-05-19 Thread Michael S. Tsirkin
On Tue, May 13, 2014 at 05:16:09PM -0400, Gabriel L. Somlo wrote: Fields for configured_clock_speed and various voltage values introduced in v2.7 and v2.8 should be word, i.e. 16 bits. Reported-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Gabriel Somlo so...@cmu.edu 0 is 0 whatever you

Re: [Qemu-devel] [Qemu-trivial] [PATCH 1/2] nbd: Don't export a block device with no medium.

2014-05-19 Thread Paolo Bonzini
Il 19/05/2014 10:00, Michael Tokarev ha scritto: 18.05.2014 14:50, Hani Benhabiles wrote: The device is exported with erroneous values and can't be read. Before the patch: $ sudo nbd-client localhost -p 10809 /dev/nbd0 -name floppy0 Negotiation: ..size = 17592186044415MB bs=1024,

Re: [Qemu-devel] [PATCH 2/2] nbd: Don't validate from and len in NBD_CMD_DISC.

2014-05-19 Thread Paolo Bonzini
Il 18/05/2014 12:50, Hani Benhabiles ha scritto: These values aren't used in this case. Currently, the from field in the request sent by the nbd kernel module leading to a false error message when ending the connection with the client. $ qemu-nbd some.img -v // After nbd-client -d /dev/nbd0

Re: [Qemu-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-19 Thread Gerd Hoffmann
Hi, I think '-vga none' just guarantees the qemu vga cards doesn't occupy 00:02.0, but this doesn't mean others use this specific slot since in qemu internal, we always pass -1 to assign a slot automatically to register a PCI device. So in some cases, we can't get this slot as we expect

Re: [Qemu-devel] [PATCH v1 RFC 3/6] KVM: s390: use facilities and cpu_id per KVM

2014-05-19 Thread Michael Mueller
On Mon, 19 May 2014 12:41:45 +0200 Alexander Graf ag...@suse.de wrote: On 19.05.14 12:13, Michael Mueller wrote: On Fri, 16 May 2014 22:35:34 +0200 Alexander Graf ag...@suse.de wrote: On 16.05.14 18:09, Michael Mueller wrote: On Fri, 16 May 2014 16:49:37 +0200 Alexander Graf

Re: [Qemu-devel] [PATCH v2] kvmclock: Ensure time in migration never goes backward

2014-05-19 Thread Paolo Bonzini
Il 18/05/2014 15:20, Marcelo Tosatti ha scritto: Reviewed-by: Marcelo Tosatti mtosa...@redhat.com Thanks Marcelo, applying to uq/master. Paolo

Re: [Qemu-devel] [PATCH v1 RFC 3/6] KVM: s390: use facilities and cpu_id per KVM

2014-05-19 Thread Alexander Graf
On 19.05.14 13:29, Michael Mueller wrote: On Mon, 19 May 2014 12:41:45 +0200 Alexander Graf ag...@suse.de wrote: On 19.05.14 12:13, Michael Mueller wrote: On Fri, 16 May 2014 22:35:34 +0200 Alexander Graf ag...@suse.de wrote: On 16.05.14 18:09, Michael Mueller wrote: On Fri, 16 May 2014

Re: [Qemu-devel] [PATCH v1 RFC 6/6] KVM: s390: add cpu model support

2014-05-19 Thread Alexander Graf
On 19.05.14 12:53, Michael Mueller wrote: On Fri, 16 May 2014 22:31:12 +0200 Alexander Graf ag...@suse.de wrote: On 16.05.14 17:39, Michael Mueller wrote: On Fri, 16 May 2014 14:08:24 +0200 Alexander Graf ag...@suse.de wrote: On 13.05.14 16:58, Michael Mueller wrote: This patch enables

Re: [Qemu-devel] [PATCH v3 03/16] s390: Convert debug printfs to QEMU_DPRINTF

2014-05-19 Thread Alexander Graf
On 18.05.14 11:37, Peter Crosthwaite wrote: On Sun, May 18, 2014 at 9:03 AM, Marc Marí marc.mari.barc...@gmail.com wrote: Modify debug macros to have the same format through the codebase and use regular ifs instead of ifdef. Signed-off-by: Marc Marí marc.mari.barc...@gmail.com ---

Re: [Qemu-devel] [PULL 00/11] SCSI changes for 2014-05-15

2014-05-19 Thread Peter Maydell
On 16 May 2014 11:37, Paolo Bonzini pbonz...@redhat.com wrote: The following changes since commit 411f491e0af173cf8f39347574941bd26fbae381: Merge remote-tracking branch 'remotes/rth/tags/tgt-axp-pull-20140424' into staging (2014-04-25 13:25:22 +0100) are available in the git repository

Re: [Qemu-devel] [v2][PATCH 8/8] xen, gfx passthrough: add opregion mapping

2014-05-19 Thread Stefano Stabellini
On Fri, 16 May 2014, Tiejun Chen wrote: The OpRegion shouldn't be mapped 1:1 because the address in the host can't be used in the guest directly. This patch traps read and write access to the opregion of the Intel GPU config space (offset 0xfc). The original patch is from Jean Guyader

Re: [Qemu-devel] [PATCH v5] libxl: add basic spice support for pv domUs

2014-05-19 Thread Fabio Fantoni
Il 16/05/2014 16:28, Ian Campbell ha scritto: On Fri, 2014-05-16 at 16:20 +0200, Fabio Fantoni wrote: Il 16/05/2014 15:56, Ian Campbell ha scritto: On Fri, 2014-05-16 at 15:41 +0200, Fabio Fantoni wrote: Il 16/05/2014 14:47, Ian Campbell ha scritto: On Fri, 2014-05-16 at 14:37 +0200, Fabio

Re: [Qemu-devel] [PATCH RFC V2 0/8] virtio: migrate new properties

2014-05-19 Thread Alexander Graf
On 19.05.14 10:38, Greg Kurz wrote: Hi, This patch set tries to address comments from the initial review. For this round, I have focused on two changes: - as suggested by Andreas, we now call the device specific code from the generic code to ease the implementation of future devices.

Re: [Qemu-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-19 Thread Chen, Tiejun
-Original Message- From: Gerd Hoffmann [mailto:kra...@redhat.com] Sent: Monday, May 19, 2014 7:23 PM To: Chen, Tiejun Cc: anthony.per...@citrix.com; stefano.stabell...@eu.citrix.com; m...@redhat.com; kelly.zyta...@amd.com; peter.mayd...@linaro.org; xen-de...@lists.xensource.com;

Re: [Qemu-devel] [Xen-devel] [v2][PATCH 3/8] xen, gfx passthrough: basic graphics passthrough support

2014-05-19 Thread Stefano Stabellini
On Fri, 16 May 2014, Konrad Rzeszutek Wilk wrote: On Fri, May 16, 2014 at 06:53:39PM +0800, Tiejun Chen wrote: basic gfx passthrough support: - add a vga type for gfx passthrough - retrieve VGA bios from sysfs, then load it to guest 0xC - register/unregister legacy VGA I/O ports and

[Qemu-devel] [PATCH] aio: Fix use-after-free in cancellation path

2014-05-19 Thread Fam Zheng
The current flow of canceling a thread from THREAD_ACTIVE state is: 1) Caller wants to cancel a request, so it calls thread_pool_cancel. 2) thread_pool_cancel waits on the conditional variable elem-check_cancel. 3) The worker thread changes state to THREAD_DONE once the task is

[Qemu-devel] [PATCH] qemu-iotests: Honor ${CACHEMODE} in 091

2014-05-19 Thread Fam Zheng
We should allow testing this on tmpfs. Any cache setting in iotests should try to obey $CACHEMODE. Signed-off-by: Fam Zheng f...@redhat.com --- tests/qemu-iotests/091 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/qemu-iotests/091 b/tests/qemu-iotests/091 index

Re: [Qemu-devel] [PATCH RFC V2 0/8] virtio: migrate new properties

2014-05-19 Thread Greg Kurz
On Mon, 19 May 2014 14:02:39 +0200 Alexander Graf ag...@suse.de wrote: On 19.05.14 10:38, Greg Kurz wrote: Hi, This patch set tries to address comments from the initial review. For this round, I have focused on two changes: - as suggested by Andreas, we now call the device specific

[Qemu-devel] Xentop's vbd_rd and vbd_wr missed with upstream qemu qdisk

2014-05-19 Thread Fabio Fantoni
vbd_rd and vbd_wr fileds are always 0 in xentop using upstream qemu and domUs with qdisk disks. If I remember good time ago I have read that this part should be implemented in qemu. Are there some news about it? Thanks for any reply and sorry for my bad english.

Re: [Qemu-devel] [PATCHv3 1/2] sun4m: Add Sun CG3 framebuffer and corresponding OpenBIOS FCode ROM

2014-05-19 Thread Mark Cave-Ayland
On 08/05/14 15:34, Andreas Färber wrote: Hi, Am 19.02.2014 22:39, schrieb Mark Cave-Ayland: On 19/02/14 13:35, Leandro Dorileo wrote: Hi Leandro, +static void cg3_realizefn(DeviceState *dev, Error **errp) +{ +SysBusDevice *sbd = SYS_BUS_DEVICE(dev); +CG3State *s = CG3(dev); +

Re: [Qemu-devel] [PATCH RFC 8/8] virtio: add endian-ambivalent support to VirtIODevice

2014-05-19 Thread Greg Kurz
On Mon, 19 May 2014 10:39:09 +0200 Greg Kurz gk...@linux.vnet.ibm.com wrote: Some CPU families can dynamically change their endianness. This means we can have little endian ppc or big endian arm guests for example. This has an impact on legacy virtio data structures since they are target

Re: [Qemu-devel] [PATCH RFC V2 0/8] virtio: migrate new properties

2014-05-19 Thread Alexander Graf
On 19.05.14 14:45, Greg Kurz wrote: On Mon, 19 May 2014 14:02:39 +0200 Alexander Graf ag...@suse.de wrote: On 19.05.14 10:38, Greg Kurz wrote: Hi, This patch set tries to address comments from the initial review. For this round, I have focused on two changes: - as suggested by Andreas, we

Re: [Qemu-devel] [PULL 00/10] input layer rework continued

2014-05-19 Thread Peter Maydell
On 16 May 2014 07:47, Gerd Hoffmann kra...@redhat.com wrote: Hi, Update for the input layer. Add keycode mapping helpers, start switching over devices to the new input api, fixes. please pull, Gerd The following changes since commit 1a381811b495651ddfc2b50d7c8cfaaf375816b0: Merge

Re: [Qemu-devel] [Xen-devel] [v2][PATCH 6/8] xen, gfx passthrough: support Intel IGD passthrough with VT-D

2014-05-19 Thread Konrad Rzeszutek Wilk
On Mon, May 19, 2014 at 12:58:50AM +, Zhang, Yang Z wrote: Konrad Rzeszutek Wilk wrote on 2014-05-16: On Fri, May 16, 2014 at 06:53:42PM +0800, Tiejun Chen wrote: Some registers of Intel IGD are mapped in host bridge, so it needs to passthrough these registers of physical host bridge

Re: [Qemu-devel] [Xen-devel] [v2][PATCH 3/8] xen, gfx passthrough: basic graphics passthrough support

2014-05-19 Thread Konrad Rzeszutek Wilk
On Mon, May 19, 2014 at 09:42:23AM +, Chen, Tiejun wrote: -Original Message- From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] Sent: Friday, May 16, 2014 10:06 PM To: Chen, Tiejun Cc: anthony.per...@citrix.com; stefano.stabell...@eu.citrix.com; m...@redhat.com;

Re: [Qemu-devel] OS X compile fix

2014-05-19 Thread Aggeler Fabian
You’re configuration works for me on 10.9 with clang from the XCode command line tools. $ xcode-select --install $ clang --version Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.2.0 Thread model: posix Best, Fabian On 19 May 2014, at 10:19, Peter

Re: [Qemu-devel] [PATCH v2] Add remove_boot_device_path() function for hot-unplug device

2014-05-19 Thread Jun Li
On 05/19/2014 03:18 PM, Markus Armbruster wrote: Jun Li junm...@gmail.com writes: On 05/15/2014 11:07 PM, Michael S. Tsirkin wrote: On Wed, Apr 16, 2014 at 10:20:57PM +0800, Jun Li wrote: [...] diff --git a/vl.c b/vl.c index 9975e5a..1713c68 100644 --- a/vl.c +++ b/vl.c @@ -1184,6 +1184,22

Re: [Qemu-devel] [PATCH v19 02/16] block: Add BlockOpType enum

2014-05-19 Thread Markus Armbruster
Fam Zheng f...@redhat.com writes: This adds the enum of all the operations that can be taken on a block device. Signed-off-by: Fam Zheng f...@redhat.com Reviewed-by: Benoit Canet ben...@irqsave.net Reviewed-by: Jeff Cody jc...@redhat.com --- include/block/block.h | 19 +++

Re: [Qemu-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-19 Thread Gerd Hoffmann
Hi, Yes, -vga, -net nic, -drive if=scsi (maybe more) can internally create pci devices with auto slot assignment, which will occupy slot 2 indeed. Use -device instead to create the devices. Are you saying we have to create the devices explicitly when we want to work IGD vga with

  1   2   3   >