Re: [Qemu-devel] memory: memory_region_transaction_commit() slow

2014-06-29 Thread Avi Kivity
On 06/26/2014 05:31 PM, Etienne Martineau wrote: On 14-06-26 04:18 AM, Avi Kivity wrote: On 06/25/2014 08:53 PM, Etienne Martineau wrote: Hi, It seems to me that there is a scale issue O(n) in memory_region_transaction_commit(). It's actually O(n^3). Flatview is kept sorted but is just a

Re: [Qemu-devel] [v5][PATCH 4/5] xen, gfx passthrough: create host bridge to passthrough

2014-06-29 Thread Chen, Tiejun
On 2014/6/27 19:26, Paolo Bonzini wrote: Il 27/06/2014 10:34, Chen, Tiejun ha scritto: So how to separate this to specific to xen? Or you mean we need to create an new machine to address this scenario? But actually this is same as xenfv_machine except for these little codes. Yes, please

[Qemu-devel] [PATCH] machine: replace underscores in machine's property names

2014-06-29 Thread Marcel Apfelbaum
Replaced '_' with '-' to comply with QOM guidelines. Made the conversion from HMP to QMP in vl.c Signed-off-by: Marcel Apfelbaum marce...@redhat.com --- hw/core/machine.c | 8 vl.c | 12 +++- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git

Re: [Qemu-devel] [RFC UNTESTED] tcg/ppc: Fix support for 64-bit PPC MacOSX hosts

2014-06-29 Thread Peter Maydell
On 29 June 2014 01:01, Andreas Färber andreas.faer...@web.de wrote: Am 26.06.2014 17:37, schrieb Peter Maydell: Add back in the support for 64-bit PPC MacOSX hosts that was broken in the recent merge of the 32-bit and 64-bit TCG backends. Reported-by: Andreas Färber andreas.faer...@web.de

Re: [Qemu-devel] [PULL 00/10] for-2.1: s390-ccw bios patches

2014-06-29 Thread Peter Maydell
On 27 June 2014 12:25, Cornelia Huck cornelia.h...@de.ibm.com wrote: Here are some s390-ccw bios patches I'd like to see in 2.1. Being able to finally boot from dasd is quite a useful feature. Please consider pulling. The following changes since commit ff4873cb8c81db89668d8b56e19e57b852edb5f5:

Re: [Qemu-devel] [PATCH] machine: replace underscores in machine's property names

2014-06-29 Thread Michael S. Tsirkin
On Sun, Jun 29, 2014 at 12:09:15PM +0300, Marcel Apfelbaum wrote: Replaced '_' with '-' to comply with QOM guidelines. Made the conversion from HMP to QMP in vl.c Signed-off-by: Marcel Apfelbaum marce...@redhat.com Nothing to do with me, pls merge through Andrea's or Paolo's tree. FWIW

Re: [Qemu-devel] [PULL 00/32] ppc patch queue 2014-06-27

2014-06-29 Thread Peter Maydell
On 27 June 2014 12:51, Alexander Graf ag...@suse.de wrote: Hi Peter, This is my current patch queue for ppc. Please pull. Alex The following changes since commit ff4873cb8c81db89668d8b56e19e57b852edb5f5: coroutine-win32.c: Add noinline attribute to work around gcc bug (2014-06-26

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

2014-06-29 Thread Michael S. Tsirkin
On Fri, Jun 27, 2014 at 05:22:18PM +0800, Chen, Tiejun wrote: On 2014/6/25 15:13, Michael S. Tsirkin wrote: On Wed, Jun 25, 2014 at 10:17:21AM +0800, Tiejun Chen wrote: [snip] diff --git a/hw/xen/xen_pt.h b/hw/xen/xen_pt.h index 507165c..25147cf 100644 --- a/hw/xen/xen_pt.h +++

Re: [Qemu-devel] [PULL 0/5] NBD changes for 2014-06-27

2014-06-29 Thread Peter Maydell
On 27 June 2014 15:11, Paolo Bonzini pbonz...@redhat.com wrote: The following changes since commit d4cba13bdf251baeedb36b87c1e9f6766773e380: tcg/ppc: Fix failure in tcg_out_mem_long (2014-06-27 13:23:41 +0100) are available in the git repository at: git://github.com/bonzini/qemu.git

Re: [Qemu-devel] [PULL 0/5] NBD changes for 2014-06-27

2014-06-29 Thread Hani Benhabiles
On Sun, Jun 29, 2014 at 12:45:27PM +0100, Peter Maydell wrote: On 27 June 2014 15:11, Paolo Bonzini pbonz...@redhat.com wrote: The following changes since commit d4cba13bdf251baeedb36b87c1e9f6766773e380: tcg/ppc: Fix failure in tcg_out_mem_long (2014-06-27 13:23:41 +0100) are

Re: [Qemu-devel] [v5][PATCH 4/5] xen, gfx passthrough: create host bridge to passthrough

2014-06-29 Thread Michael S. Tsirkin
On Sun, Jun 29, 2014 at 03:56:10PM +0800, Chen, Tiejun wrote: On 2014/6/27 19:26, Paolo Bonzini wrote: Il 27/06/2014 10:34, Chen, Tiejun ha scritto: So how to separate this to specific to xen? Or you mean we need to create an new machine to address this scenario? But actually this is same

[Qemu-devel] [PULL v2 00/13] linux-user changes for 2.1

2014-06-29 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org The following changes since commit de6793e8c2a4d34e28e5ea385276249fc98109ec: Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20140627' into staging (2014-06-29 11:43:31 +0100) are available in the git repository at:

[Qemu-devel] [PULL v2 01/13] Add support for MAP_NORESERVE mmap flag.

2014-06-29 Thread riku . voipio
From: Christophe Lyon christophe.l...@linaro.org mmap_flags_tbl contains a list of mmap flags, and how to map them to the target. This patch adds MAP_NORESERVE, which was missing to the list. Signed-off-by: Christophe Lyon christophe.l...@linaro.org Reviewed-by: Peter Maydell

[Qemu-devel] [PULL v2 03/13] linux-user: translate the result of getsockopt SO_TYPE

2014-06-29 Thread riku . voipio
From: Paul Burton p...@archlinuxmips.org QEMU previously passed the result of the host syscall directly to the target program. This is a problem if the host target have different representations of socket types, as is the case when running a MIPS target program on an x86 host. Introduce a

[Qemu-devel] [PULL v2 08/13] linux-user: support strace of epoll_create1

2014-06-29 Thread riku . voipio
From: Paul Burton p...@archlinuxmips.org Add the epoll_create1 syscall to strace.list in order to display that syscall when it occurs, rather than a message about the syscall being unknown despite QEMU already implementing support for it. Signed-off-by: Paul Burton p...@archlinuxmips.org

[Qemu-devel] [PULL v2 04/13] linux-user: support SO_ACCEPTCONN getsockopt option

2014-06-29 Thread riku . voipio
From: Paul Burton p...@archlinuxmips.org Translate the SO_ACCEPTCONN option to the host value execute the syscall as expected. Signed-off-by: Paul Burton p...@archlinuxmips.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 3 +++ 1 file changed, 3 insertions(+)

[Qemu-devel] [PULL v2 10/13] linux-user: respect timezone for settimeofday

2014-06-29 Thread riku . voipio
From: Paul Burton p...@archlinuxmips.org The settimeofday syscall accepts a tz argument indicating the desired timezone to the kernel. QEMU previously ignored any argument provided by the target program always passed NULL to the kernel. Instead, translate the argument pass along the data

[Qemu-devel] [PULL v2 05/13] linux-user: support SO_{SND, RCV}BUFFORCE setsockopt options

2014-06-29 Thread riku . voipio
From: Paul Burton p...@archlinuxmips.org Translate the SO_SNDBUFFORCE SO_RCVBUFFORCE options to setsockopt to the host values perform the syscall as expected, allowing use of those options by target programs. Signed-off-by: Paul Burton p...@archlinuxmips.org Signed-off-by: Riku Voipio

[Qemu-devel] [PULL v2 06/13] linux-user: support SO_PASSSEC setsockopt option

2014-06-29 Thread riku . voipio
From: Paul Burton p...@archlinuxmips.org Translate the SO_PASSSEC option to setsockopt to the host value perform the syscall as expected, allowing use of the option by target programs. Signed-off-by: Paul Burton p...@archlinuxmips.org Signed-off-by: Riku Voipio riku.voi...@linaro.org ---

[Qemu-devel] possible denial of service via VNC

2014-06-29 Thread Peter Lieven
Hi, while debugging a VNC issue I found this: case VNC_MSG_CLIENT_CUT_TEXT: if (len == 1) return 8; if (len == 8) { uint32_t dlen = read_u32(data, 4); if (dlen 0) return 8 + dlen; } client_cut_text(vs,

[Qemu-devel] [PULL v2 09/13] linux-user: fix struct target_epoll_event layout for MIPS

2014-06-29 Thread riku . voipio
From: Paul Burton p...@archlinuxmips.org MIPS requires the pad field to 64b-align the data field just as ARM does. Signed-off-by: Paul Burton p...@archlinuxmips.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall_defs.h | 2 +- 1 file changed, 1 insertion(+), 1

[Qemu-devel] [PULL v2 12/13] linux-user: support the KDSIGACCEPT ioctl

2014-06-29 Thread riku . voipio
From: Paul Burton p...@archlinuxmips.org Add a definition of the KDSIGACCEPT ioctl allow its use by target programs. Signed-off-by: Paul Burton p...@archlinuxmips.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/ioctls.h | 1 + linux-user/syscall.c | 7 +++

[Qemu-devel] [PULL v2 02/13] linux-user: added fake open() for /proc/self/cmdline

2014-06-29 Thread riku . voipio
From: Wim Vander Schelden w...@fixnum.org Signed-off-by: Wim Vander Schelden w...@fixnum.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 46 ++ 1 file changed, 46 insertions(+) diff --git a/linux-user/syscall.c

[Qemu-devel] [PULL v2 07/13] linux-user: allow NULL arguments to mount

2014-06-29 Thread riku . voipio
From: Paul Burton p...@archlinuxmips.org Calls to the mount syscall can legitimately provide NULL as the value for the source of filesystemtype arguments, which QEMU would previously reject return -EFAULT to the target program. An example of this is remounting an already mounted filesystem with

[Qemu-devel] [PULL v2 11/13] linux-user: allow NULL tv argument for settimeofday

2014-06-29 Thread riku . voipio
From: Paul Burton p...@archlinuxmips.org The tv argument to the settimeofday syscall is allowed to be NULL, if the program only wishes to provide the timezone. QEMU previously returned -EFAULT when tv was NULL. Instead, execute the syscall provide NULL to the kernel as the target program

[Qemu-devel] [PULL v2 13/13] linux-user: support the SIOCGIFINDEX ioctl

2014-06-29 Thread riku . voipio
From: Paul Burton p...@archlinuxmips.org Add a definition of the SIOCGIFINDEX ioctl, allowing its use by target programs. Signed-off-by: Paul Burton p...@archlinuxmips.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/ioctls.h | 1 + linux-user/syscall_defs.h | 1 + 2

Re: [Qemu-devel] [PULL for-2.1 0/4] Net patches

2014-06-29 Thread Peter Maydell
On 27 June 2014 15:24, Stefan Hajnoczi stefa...@redhat.com wrote: The following changes since commit ff4873cb8c81db89668d8b56e19e57b852edb5f5: coroutine-win32.c: Add noinline attribute to work around gcc bug (2014-06-26 14:08:14 +0100) are available in the git repository at:

Re: [Qemu-devel] [PATCH v2] [PATCH] Allow mismatched virtio config-len

2014-06-29 Thread Michael S. Tsirkin
On Fri, Jun 27, 2014 at 08:02:48PM +0100, Dr. David Alan Gilbert (git) wrote: From: Dr. David Alan Gilbert dgilb...@redhat.com Commit 'virtio: validate config_len on load' restricted config_len loaded from the wire to match the config_len that the device had. Unfortunately, there are cases

Re: [Qemu-devel] [PATCH] ui/vnc: avoid memory corruption if width % VNC_DIRTY_PIXELS_PER_BIT != 0

2014-06-29 Thread Peter Lieven
If you find that patch too strict, I have another patch ready (needs some final testing) which works around all the possible corruption issues iff a) width % VNC_DIRTY_PIXELS_PER_BIT != 0 (while still keep it working) b) width VNC_MAX_WIDTH || heigth VNC_MAX_HEIGTH Peter Am 27.06.2014

Re: [Qemu-devel] [PULL for-2.1 0/8] QMP queue

2014-06-29 Thread Peter Maydell
On 27 June 2014 20:41, Luiz Capitulino lcapitul...@redhat.com wrote: The following changes since commit d4cba13bdf251baeedb36b87c1e9f6766773e380: tcg/ppc: Fix failure in tcg_out_mem_long (2014-06-27 13:23:41 +0100) are available in the git repository at:

Re: [Qemu-devel] [PATCH v3] vhost-user: fix regions provied with VHOST_USER_SET_MEM_TABLE message

2014-06-29 Thread Michael S. Tsirkin
On Thu, Jun 26, 2014 at 11:01:32PM +0200, Damjan Marion wrote: Old code was affected by memory gaps which resulted in buffer pointers pointing to address outside of the mapped regions. Here we are introducing following changes: - new function qemu_get_ram_block_host_ptr() returns host

Re: [Qemu-devel] [PATCH v3] vhost-user: fix regions provied with VHOST_USER_SET_MEM_TABLE message

2014-06-29 Thread Michael S. Tsirkin
On Fri, Jun 27, 2014 at 08:02:48AM +0300, Nikolay Nikolaev wrote: On Fri, Jun 27, 2014 at 12:01 AM, Damjan Marion damar...@cisco.com wrote: Old code was affected by memory gaps which resulted in buffer pointers pointing to address outside of the mapped regions. Here we

Re: [Qemu-devel] [PATCH v3] vhost-user: fix regions provied with VHOST_USER_SET_MEM_TABLE message

2014-06-29 Thread Michael S. Tsirkin
Subject has a typo. Fixed it up. On Thu, Jun 26, 2014 at 11:01:32PM +0200, Damjan Marion wrote: Old code was affected by memory gaps which resulted in buffer pointers pointing to address outside of the mapped regions. Here we are introducing following changes: - new function

Re: [Qemu-devel] [PATCH 0/3] Validate NUMA node IDs (reject duplicate/missing node IDs properly)

2014-06-29 Thread Michael S. Tsirkin
On Thu, Jun 26, 2014 at 06:33:17PM -0300, Eduardo Habkost wrote: This is just a cleanup to make sure QEMU validate the NUMA node IDs on the command-line. After that, we may eventually change the code to accept sparse node IDs under some circumstances (but I am not sure that would be material

Re: [Qemu-devel] [PATCH v9 22/22] vhost-net: disable when cross-endian

2014-06-29 Thread Michael S. Tsirkin
On Tue, Jun 24, 2014 at 07:55:03PM +0200, Greg Kurz wrote: As of today, vhost assumes guest and host have the same endianness. This is definitely not compatible with modern PPC64 and ARM that can change endianness at runtime. Let's disable vhost-net and print an error message when we detect

Re: [Qemu-devel] [PATCH v9 00/22] legacy virtio support for cross-endian targets

2014-06-29 Thread Michael S. Tsirkin
On Tue, Jun 24, 2014 at 07:06:58PM +0200, Greg Kurz wrote: The current legacy virtio devices have a fundamental flaw: they all share data between host and guest with guest endianness ordering. This is ok for nearly all architectures that have fixed endianness. Unfortunately, it breaks for

Re: [Qemu-devel] [PULL 00/47] Block patches for 2.1.0-rc0

2014-06-29 Thread Peter Maydell
On 27 June 2014 20:08, Kevin Wolf kw...@redhat.com wrote: The following changes since commit 2b5b7ae917e8db48431631b1c5d909fa46c223a6: Merge remote-tracking branch 'remotes/mjt/tags/trivial-patches-2014-06-24' into staging (2014-06-24 17:14:57 +0100) are available in the git repository

Re: [Qemu-devel] [PATCH] numa: check for busy memory backend

2014-06-29 Thread Michael S. Tsirkin
On Wed, Jun 25, 2014 at 05:04:14PM +0800, Hu Tao wrote: ..to prevent one memory backend from being used by more than one numa node. Thanks, but please always make the msg content self-contained so it can be understood without the subject. E.g. here, just drop ..to. Are you sure we want this?

Re: [Qemu-devel] [PATCH 0/3] another round of pci fixes

2014-06-29 Thread Michael S. Tsirkin
On Fri, Jun 20, 2014 at 01:55:40PM +0800, Hu Tao wrote: Hi Michael, This series is on top of your pci tree. This series includes two fixups and one patch for adding test of human format of string output visitor, please review. thanks! All applied, thanks! Hu Tao (3): fixup!

Re: [Qemu-devel] [PULL 2.1 00/10] target-xtensa queue 2014-06-29

2014-06-29 Thread Peter Maydell
in the git repository at: g...@github.com:OSLL/qemu-xtensa.git tags/20140629-xtensa Can you fix up whatever you're using to generate these emails, please? This isn't a valid git url, you probably meant git://github.com/OSLL/qemu-xtensa.git tags/20140629-xtensa for you to fetch changes up

Re: [Qemu-devel] [PULL 2.1 00/10] target-xtensa queue 2014-06-29

2014-06-29 Thread Max Filippov
: Fix failure in tcg_out_mem_long (2014-06-27 13:23:41 +0100) are available in the git repository at: g...@github.com:OSLL/qemu-xtensa.git tags/20140629-xtensa Can you fix up whatever you're using to generate these emails, please? This isn't a valid git url, you probably meant git

Re: [Qemu-devel] [PATCH v9 00/22] legacy virtio support for cross-endian targets

2014-06-29 Thread Alexander Graf
Am 29.06.2014 um 17:13 schrieb Michael S. Tsirkin m...@redhat.com: On Tue, Jun 24, 2014 at 07:06:58PM +0200, Greg Kurz wrote: The current legacy virtio devices have a fundamental flaw: they all share data between host and guest with guest endianness ordering. This is ok for nearly all

[Qemu-devel] [PULL 01/37] numa: fix comment

2014-06-29 Thread Michael S. Tsirkin
Fix up English in comments: s/the each/each/ Signed-off-by: Michael S. Tsirkin m...@redhat.com Reviewed-by: Igor Mammedov imamm...@redhat.com --- numa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numa.c b/numa.c index e471afe..47049a5 100644 --- a/numa.c +++ b/numa.c @@

[Qemu-devel] [PULL 00/37] pc,vhost,virtio fixes, enhancements

2014-06-29 Thread Michael S. Tsirkin
The following changes since commit 4daebe014effba37246b81d25acca5fa2df82f01: Merge remote-tracking branch 'remotes/xtensa/tags/20140629-xtensa' into staging (2014-06-29 16:17:50 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git tags

[Qemu-devel] [PULL 04/37] pc: Move q35 compat props to PC_COMPAT_*

2014-06-29 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com For each compat property on PC_Q35_COMPAT_*, there are only two possibilities: * If the device is never instantiated when using a machine other than pc-q35, then the compat property can be safely added to PC_COMPAT_*; * If the device can be

[Qemu-devel] [PULL 05/37] pc: Fix prog_if typo on PC_COMPAT_2_0

2014-06-29 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com The property name is prog_if, not prof_if. Signed-off-by: Eduardo Habkost ehabk...@redhat.com Reported-by: BALATON Zoltan bala...@eik.bme.hu Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com ---

[Qemu-devel] [PULL 03/37] numa: fix comment

2014-06-29 Thread Michael S. Tsirkin
s/if given for/is given for/; Reported-by: Hu Tao hu...@cn.fujitsu.com Signed-off-by: Michael S. Tsirkin m...@redhat.com --- numa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numa.c b/numa.c index 47049a5..6c2eae7 100644 --- a/numa.c +++ b/numa.c @@ -161,7 +161,7 @@ void

[Qemu-devel] [PULL 02/37] openrisc: fix comment

2014-06-29 Thread Michael S. Tsirkin
Fix English in comment: s/the each/each/ s/ \*\// \*\// Signed-off-by: Michael S. Tsirkin m...@redhat.com Reviewed-by: Igor Mammedov imamm...@redhat.com --- target-openrisc/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-openrisc/translate.c

[Qemu-devel] [PULL 09/37] Allow mismatched virtio config-len

2014-06-29 Thread Michael S. Tsirkin
From: Dr. David Alan Gilbert dgilb...@redhat.com Commit 'virtio: validate config_len on load' restricted config_len loaded from the wire to match the config_len that the device had. Unfortunately, there are cases where this isn't true, the one we found it on was the wce addition in virtio-blk.

[Qemu-devel] [PULL 08/37] pc: make isapc and pc-0.10 to pc-0.13 have 1.7.0 memory layout

2014-06-29 Thread Michael S. Tsirkin
From: Don Slutz dsl...@verizon.com QEMU 2.0 changed memory layout for isapc and pc-0.10 to pc-0.13. This prevents migration from QEMU 1.7.0 for these machine types when -m 3.5G is specified. Paolo Bonzini asked that: smbios_legacy_mode = true; has_reserved_memory = false;

[Qemu-devel] [PULL 13/37] vhost-user: fix regions provied with VHOST_USER_SET_MEM_TABLE message

2014-06-29 Thread Michael S. Tsirkin
From: Damjan Marion damar...@cisco.com Old code was affected by memory gaps which resulted in buffer pointers pointing to address outside of the mapped regions. Here we are introducing following changes: - new function qemu_get_ram_block_host_ptr() returns host pointer to the ram block, it

[Qemu-devel] [PULL 07/37] vhost-user: fix wrong ids in documentation

2014-06-29 Thread Michael S. Tsirkin
From: Damjan Marion damar...@cisco.com Signed-off-by: Damjan Marion damar...@cisco.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com --- docs/specs/vhost-user.txt | 28 ++-- 1 file changed, 14 insertions(+), 14

[Qemu-devel] [PULL 10/37] numa: Keep track of NUMA nodes present on the command-line

2014-06-29 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com Based on enable sparse node numbering patch from Nishanth Aravamudan, but without the code to actually support sparse node IDs. This just adds the code to keep track of present/non-present nodes on the command-line, without changing any behavior.

[Qemu-devel] [PULL 15/37] virtio-net: byteswap virtio-net header

2014-06-29 Thread Michael S. Tsirkin
From: Cédric Le Goater c...@fr.ibm.com TCP connectivity fails when the guest has a different endianness. The packets are silently dropped on the host by the tap backend when they are read from user space because the endianness of the virtio-net header is in the wrong order. These lines may appear

[Qemu-devel] [PULL 18/37] virtio-net: implement per-device migration calls

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz gk...@linux.vnet.ibm.com Signed-off-by: Greg Kurz gk...@linux.vnet.ibm.com Reviewed-by: Alexander Graf ag...@suse.de Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/net/virtio-net.c | 22 -- 1 file

[Qemu-devel] [PULL 16/37] virtio-serial: don't migrate the config space

2014-06-29 Thread Michael S. Tsirkin
From: Alexander Graf ag...@suse.de The device configuration is set at realize time and never changes. It should not be migrated as it is done today. For the sake of compatibility, let's just skip them at load time. Signed-off-by: Alexander Graf ag...@suse.de [ added missing casts to uint16_t *,

[Qemu-devel] [PULL 17/37] virtio: introduce device specific migration calls

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz gk...@linux.vnet.ibm.com In order to migrate virtio subsections, they should be streamed after the device itself. We need the device specific code to be called from the common migration code to achieve this. This patch introduces load and save methods for this purpose.

[Qemu-devel] [PULL 20/37] virtio-serial: implement per-device migration calls

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz gk...@linux.vnet.ibm.com Signed-off-by: Greg Kurz gk...@linux.vnet.ibm.com Reviewed-by: Alexander Graf ag...@suse.de Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/char/virtio-serial-bus.c | 34

[Qemu-devel] [PULL 19/37] virtio-blk: implement per-device migration calls

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz gk...@linux.vnet.ibm.com Signed-off-by: Greg Kurz gk...@linux.vnet.ibm.com Reviewed-by: Alexander Graf ag...@suse.de Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/block/virtio-blk.c | 24 1 file

[Qemu-devel] [PULL 23/37] virtio: add subsections to the migration stream

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz gk...@linux.vnet.ibm.com 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

[Qemu-devel] [PULL 30/37] virtio-balloon: use virtio wrappers to access page frame numbers

2014-06-29 Thread Michael S. Tsirkin
From: Rusty Russell ru...@rustcorp.com.au Signed-off-by: Rusty Russell ru...@rustcorp.com.au Reviewed-by: Anthony Liguori aligu...@us.ibm.com [ pass VirtIODevice * to memory accessors, Greg Kurz gk...@linux.vnet.ibm.com ] Signed-off-by: Greg Kurz gk...@linux.vnet.ibm.com Reviewed-by: Alexander

[Qemu-devel] [PULL 29/37] virtio-net: use virtio wrappers to access headers

2014-06-29 Thread Michael S. Tsirkin
From: Rusty Russell ru...@rustcorp.com.au Signed-off-by: Rusty Russell ru...@rustcorp.com.au Reviewed-by: Anthony Liguori aligu...@us.ibm.com [ pass VirtIODevice * to memory accessors, converted new tswap locations to virtio_tswap, Greg Kurz gk...@linux.vnet.ibm.com ] Signed-off-by: Greg Kurz

[Qemu-devel] [PULL 28/37] virtio: allow byte swapping for vring

2014-06-29 Thread Michael S. Tsirkin
From: Rusty Russell ru...@rustcorp.com.au Quoting original text from Rusty: This is based on a simpler patch by Anthony Liguouri. Signed-off-by: Rusty Russell ru...@rustcorp.com.au [ add VirtIODevice * argument to most helpers, Greg Kurz gk...@linux.vnet.ibm.com ] Signed-off-by: Greg Kurz

[Qemu-devel] [PULL 35/37] target-ppc: enable virtio endian ambivalent support

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz gk...@linux.vnet.ibm.com The device endianness is the cpu endianness at device reset time. Signed-off-by: Greg Kurz gk...@linux.vnet.ibm.com Reviewed-by: Alexander Graf ag...@suse.de Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com

[Qemu-devel] [PULL 33/37] virtio-serial-bus: use virtio wrappers to access headers

2014-06-29 Thread Michael S. Tsirkin
From: Rusty Russell ru...@rustcorp.com.au We also fix max_nr_ports at reset time as the device endianness may have changed. Signed-off-by: Rusty Russell ru...@rustcorp.com.au Reviewed-by: Anthony Liguori aligu...@us.ibm.com [ pass VirtIODevice * to memory accessors, fix max_nr_ports at reset

[Qemu-devel] [PULL 36/37] vhost-net: disable when cross-endian

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz gk...@linux.vnet.ibm.com As of today, vhost assumes guest and host have the same endianness. This is definitely not compatible with modern PPC64 and ARM that can change endianness at runtime. Let's disable vhost-net and print an error message when we detect such a case:

[Qemu-devel] [PULL 37/37] tests: add human format test for string output visitor

2014-06-29 Thread Michael S. Tsirkin
From: Hu Tao hu...@cn.fujitsu.com Signed-off-by: Hu Tao hu...@cn.fujitsu.com Acked-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com --- tests/test-string-output-visitor.c | 109 ++--- 1 file changed, 90 insertions(+), 19

Re: [Qemu-devel] possible denial of service via VNC

2014-06-29 Thread Anthony Liguori
On Sun, Jun 29, 2014 at 5:16 AM, Peter Lieven p...@kamp.de wrote: Hi, while debugging a VNC issue I found this: case VNC_MSG_CLIENT_CUT_TEXT: if (len == 1) return 8; if (len == 8) { uint32_t dlen = read_u32(data, 4); if (dlen 0)

[Qemu-devel] [PULL 25/37] cpu: introduce CPUClass::virtio_is_big_endian()

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz gk...@linux.vnet.ibm.com If we want to support targets that can change endianness (modern PPC and ARM for the moment), we need to add a per-CPU class method to be called from the virtio code. The virtio_ prefix in the name is a hint for people to avoid misusage (aka. anywhere but

[Qemu-devel] [PULL 06/37] mc146818rtc: add rtc-reset-reinjection QMP command

2014-06-29 Thread Michael S. Tsirkin
From: Marcelo Tosatti mtosa...@redhat.com It is necessary to reset RTC interrupt reinjection backlog if guest time is synchronized via a different mechanism, such as QGA's guest-set-time command. Failing to do so causes both corrections to be applied (summed), resulting in an incorrect guest

Re: [Qemu-devel] [PULL 00/37] pc,vhost,virtio fixes, enhancements

2014-06-29 Thread Peter Maydell
On 29 June 2014 17:58, Michael S. Tsirkin m...@redhat.com wrote: The following changes since commit 4daebe014effba37246b81d25acca5fa2df82f01: Merge remote-tracking branch 'remotes/xtensa/tags/20140629-xtensa' into staging (2014-06-29 16:17:50 +0100) are available in the git repository

[Qemu-devel] [PULL 22/37] virtio-rng: implement per-device migration calls

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz gk...@linux.vnet.ibm.com While we are here, we also check virtio_load() return value. Signed-off-by: Greg Kurz gk...@linux.vnet.ibm.com Reviewed-by: Alexander Graf ag...@suse.de Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com ---

Re: [Qemu-devel] [PULL v2 00/13] linux-user changes for 2.1

2014-06-29 Thread Peter Maydell
On 29 June 2014 13:14, riku.voi...@linaro.org wrote: From: Riku Voipio riku.voi...@linaro.org The following changes since commit de6793e8c2a4d34e28e5ea385276249fc98109ec: Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20140627' into staging (2014-06-29 11:43:31 +0100) are

[Qemu-devel] [PULL 11/37] numa: Reject duplicate node IDs

2014-06-29 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com The same nodeid shouldn't appear multiple times in the command-line. In addition to detecting command-line mistakes, this will fix a bug where nb_numa_nodes may become larger than MAX_NODES (and cause out-of-bounds access on the numa_info array).

[Qemu-devel] [PULL 34/37] virtio-9p: use virtio wrappers to access headers

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz gk...@linux.vnet.ibm.com Note that st*_raw and ld*_raw are effectively replaced by st*_p and ld*_p. Signed-off-by: Greg Kurz gk...@linux.vnet.ibm.com Reviewed-by: Alexander Graf ag...@suse.de Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin

[Qemu-devel] [PULL 14/37] vhost-user: typo fixups

2014-06-29 Thread Michael S. Tsirkin
Fix typo in field name. Strip two consequitive empty lines. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- docs/specs/vhost-user.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/specs/vhost-user.txt b/docs/specs/vhost-user.txt index 6abb697..650bb18 100644

[Qemu-devel] [PATCH] ahci.c: mask unused flags when reading size PRDT DBC

2014-06-29 Thread reza . jelveh
From: Reza Jelveh reza.jel...@tuhh.de The data byte count(DBC) read from the description information is defined for 21:00. 30:22 are reserved and 31 is the Interrupt on Completion (I) flag. Interrupt is not implemented in QEMU. tbl_entry_size is a signed integer and improperly reading the DBC

[Qemu-devel] [PATCH] ahci.c: mask unused flags when reading size PRDT DBC

2014-06-29 Thread reza . jelveh
This requires a custom ovmf image with sata controller for testing [0] [0]: http://reza.jelveh.me/assets/OVMF.fd.bz2

[Qemu-devel] [PULL 26/37] virtio: add endian-ambivalent support to VirtIODevice

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz gk...@linux.vnet.ibm.com 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

[Qemu-devel] [PULL 27/37] virtio: memory accessors for endian-ambivalent targets

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz gk...@linux.vnet.ibm.com This is the virtio-access.h header file taken from Rusty's endian-ambivalent targets using legacy virtio patch. It introduces helpers that should be used when accessing vring data or by drivers for data that contains headers. The virtio config space is

[Qemu-devel] [PULL 31/37] virtio-blk: use virtio wrappers to access headers

2014-06-29 Thread Michael S. Tsirkin
From: Rusty Russell ru...@rustcorp.com.au Note that st*_raw and ld*_raw are effectively replaced by st*_p and ld*_p. Signed-off-by: Rusty Russell ru...@rustcorp.com.au Reviewed-by: Anthony Liguori aligu...@us.ibm.com [ pass VirtIODevice * to memory accessors, Greg Kurz gk...@linux.vnet.ibm.com

[Qemu-devel] [PULL 32/37] virtio-scsi: use virtio wrappers to access headers

2014-06-29 Thread Michael S. Tsirkin
From: Rusty Russell ru...@rustcorp.com.au Note that st*_raw and ld*_raw are effectively replaced by st*_p and ld*_p. Signed-off-by: Rusty Russell ru...@rustcorp.com.au Reviewed-by: Anthony Liguori aligu...@us.ibm.com [ pass VirtIODevice * to memory accessors, converted new tswap locations to

[Qemu-devel] [PULL 21/37] virtio-balloon: implement per-device migration calls

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz gk...@linux.vnet.ibm.com Signed-off-by: Greg Kurz gk...@linux.vnet.ibm.com Reviewed-by: Alexander Graf ag...@suse.de Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/virtio/virtio-balloon.c | 25 ++--- 1

[Qemu-devel] [PULL 12/37] numa: Reject configuration if not all node IDs are present

2014-06-29 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com We don't support sparse NUMA node IDs yet, so this changes QEMU to reject configs where not all nodes are present. Signed-off-by: Eduardo Habkost ehabk...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin

[Qemu-devel] [PULL 24/37] exec: introduce target_words_bigendian() helper

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz gk...@linux.vnet.ibm.com We currently have a virtio_is_big_endian() helper that provides the target endianness to the virtio code. As of today, the helper returns a fixed compile-time value. Of course, this will have to change if we want to support target endianness changes at

Re: [Qemu-devel] [PATCH FOR 2.1 1/5] tests/test-qmp-event: fix for GLib 2.31

2014-06-29 Thread Peter Maydell
On 27 June 2014 19:28, Luiz Capitulino lcapitul...@redhat.com wrote: On Wed, 25 Jun 2014 15:15:35 +0200 Paolo Bonzini pbonz...@redhat.com wrote: Il 25/06/2014 15:13, Luiz Capitulino ha scritto: On Tue, 24 Jun 2014 16:33:56 -0700 Wenchao Xia wenchaoq...@gmail.com wrote: From: Paolo

Re: [Qemu-devel] [PULL 00/37] pc,vhost,virtio fixes, enhancements

2014-06-29 Thread Michael S. Tsirkin
On Sun, Jun 29, 2014 at 06:36:49PM +0100, Peter Maydell wrote: On 29 June 2014 17:58, Michael S. Tsirkin m...@redhat.com wrote: The following changes since commit 4daebe014effba37246b81d25acca5fa2df82f01: Merge remote-tracking branch 'remotes/xtensa/tags/20140629-xtensa' into staging

Re: [Qemu-devel] [PULL 00/37] pc,vhost,virtio fixes, enhancements

2014-06-29 Thread Peter Maydell
On 29 June 2014 21:34, Michael S. Tsirkin m...@redhat.com wrote: BTW, I notice that out of the multiple make check runs, one failed: https://travis-ci.org/qemu/qemu/jobs/28721760 I'm guessing this is unrelated to the tree itself, this could be the race PM saw on arm manifesting on x86. we

[Qemu-devel] [PATCH v2] tests: Functions bus_foreach and device_find from libqos virtio API

2014-06-29 Thread Marc Marí
Virtio header has been changed to compile and work with a real device. Functions bus_foreach and device_find have been implemented for PCI. Virtio-blk test case now opens a fake device. Signed-off-by: Marc Marí marc.mari.barc...@gmail.com --- tests/Makefile|3 +-

Re: [Qemu-devel] [PATCH 0/4] ui/cocoa: Fix absolute positioning and other bugs

2014-06-29 Thread Peter Maydell
On 23 June 2014 10:35, Peter Maydell peter.mayd...@linaro.org wrote: This set of cocoa UI patches: * fixes the completely broken handling of absolute positioning (tablet-style) input devices * fixes a bug where if the first surface created was the same 640x480 as the initial window

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

2014-06-29 Thread Chen, Tiejun
On 2014/6/29 19:43, Michael S. Tsirkin wrote: On Fri, Jun 27, 2014 at 05:22:18PM +0800, Chen, Tiejun wrote: On 2014/6/25 15:13, Michael S. Tsirkin wrote: On Wed, Jun 25, 2014 at 10:17:21AM +0800, Tiejun Chen wrote: [snip] diff --git a/hw/xen/xen_pt.h b/hw/xen/xen_pt.h index

[Qemu-devel] [questions] about KVM as a Microsoft-compatible hypervisor

2014-06-29 Thread Zhang Haoyu
Hi, Vadim I read the kvm-2012-forum paper KVM as a Microsoft-compatible hypervisor, Any update and other references, please? Thanks, Zhang Haoyu

Re: [Qemu-devel] [v5][PATCH 0/5] xen: add Intel IGD passthrough support

2014-06-29 Thread Chen, Tiejun
On 2014/6/26 18:03, Paolo Bonzini wrote: Il 26/06/2014 11:18, Chen, Tiejun ha scritto: - offsets 0x..0x0fff map to configuration space of the host MCH Are you saying the config space in the video device? No, I am saying in a new BAR, or at some magic offset of an existing MMIO BAR.

Re: [Qemu-devel] [v5][PATCH 4/5] xen, gfx passthrough: create host bridge to passthrough

2014-06-29 Thread Chen, Tiejun
On 2014/6/29 20:14, Michael S. Tsirkin wrote: On Sun, Jun 29, 2014 at 03:56:10PM +0800, Chen, Tiejun wrote: On 2014/6/27 19:26, Paolo Bonzini wrote: Il 27/06/2014 10:34, Chen, Tiejun ha scritto: So how to separate this to specific to xen? Or you mean we need to create an new machine to

Re: [Qemu-devel] [RFC][PATCH] gpu:drm:i915:intel_detect_pch: back to check devfn instead of check class type

2014-06-29 Thread Chen, Tiejun
On 2014/6/25 15:55, Paolo Bonzini wrote: Il 25/06/2014 09:34, Chen, Tiejun ha scritto: On 2014/6/25 14:48, Paolo Bonzini wrote: Second problem. Your IGD passthrough code currently works with QEMU's PIIX4-based machine. But what happens if you try to extend it, so that Yes, current xen

[Qemu-devel] QApi: Java interface

2014-06-29 Thread Shevek
Hi, I have written a Java code generator to allow a Java control process to interface with the QApi subsystem. The code is autogenerated from the JSON schema, and imposes as much strict typing as is possible. It can easily be regenerated from any branch or directory if you want to test

Re: [Qemu-devel] [PATCH V3] qemu-img create: add 'nocow' option

2014-06-29 Thread Chun Yan Liu
On 6/27/2014 at 07:48 PM, in message 20140627114806.gm12...@stefanha-thinkpad.muc.redhat.com, Stefan Hajnoczi stefa...@redhat.com wrote: On Mon, Jun 23, 2014 at 05:17:02PM +0800, Chunyan Liu wrote: Add 'nocow' option so that users could have a chance to set NOCOW flag to newly created

Re: [Qemu-devel] [Qemu-ppc] [PATCH v4] ppc: spapr-rtas - implement os-term rtas call

2014-06-29 Thread Nikunj A Dadhania
Tyrel Datwyler turtle.in.the.ker...@gmail.com writes: On 06/27/2014 12:37 AM, Nikunj A Dadhania wrote: PAPR compliant guest calls this in absence of kdump. This finally reaches the guest and can be handled according to the policies set by higher level tools(like taking dump) for further

Re: [Qemu-devel] [PATCH] numa: check for busy memory backend

2014-06-29 Thread Hu Tao
On Sun, Jun 29, 2014 at 06:20:22PM +0300, Michael S. Tsirkin wrote: On Wed, Jun 25, 2014 at 05:04:14PM +0800, Hu Tao wrote: ..to prevent one memory backend from being used by more than one numa node. Thanks, but please always make the msg content self-contained so it can be understood