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

2014-06-29 Thread Michael S. Tsirkin
On Mon, Jun 30, 2014 at 01:33:42PM +0800, Hu Tao wrote: > 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 plea

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

2014-06-29 Thread Greg Kurz
On Sun, 29 Jun 2014 18:13:53 +0300 "Michael S. Tsirkin" wrote: > 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 ar

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

2014-06-29 Thread Michael S. Tsirkin
On Mon, Jun 30, 2014 at 10:51:49AM +0800, Chen, Tiejun wrote: > 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 d

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

2014-06-29 Thread Chunyan Liu
Add 'nocow' option so that users could have a chance to set NOCOW flag to newly created files. It's useful on btrfs file system to enhance performance. Btrfs has low performance when hosting VM images, even more when the guest in those VM are also using btrfs as file system. One way to mitigate th

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 underst

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

2014-06-29 Thread Nikunj A Dadhania
Tyrel Datwyler 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 analysis by tools like >> cra

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 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 files. It's

[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 agains

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 machi

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 addre

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.

[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 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 507165c..25147cf

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 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 we'd never actually dr

[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í --- tests/Makefile|3 +- tests/libqos/virtio-pci.c | 127 +++

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 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 should t

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 wrote: > > The following changes since commit 4daebe014effba37246b81d25acca5fa2df82f01: > > > > Merge remote-tracking branch 'remotes/xtensa/tags/20140629-xtens

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 wrote: > On Wed, 25 Jun 2014 15:15:35 +0200 > Paolo Bonzini wrote: > >> Il 25/06/2014 15:13, Luiz Capitulino ha scritto: >> > On Tue, 24 Jun 2014 16:33:56 -0700 >> > Wenchao Xia wrote: >> > >> >> From: Paolo Bonzini >> >> >> >> On old GLib, the test needs

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

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz 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 run-time. Let's move the TA

[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 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 Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Eric Blake --- numa.c | 17 -

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

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz Signed-off-by: Greg Kurz Reviewed-by: Alexander Graf Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/virtio/virtio-balloon.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/hw/virtio/virtio-balloon.c b/h

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

2014-06-29 Thread Michael S. Tsirkin
From: Rusty Russell Note that st*_raw and ld*_raw are effectively replaced by st*_p and ld*_p. Signed-off-by: Rusty Russell Reviewed-by: Anthony Liguori [ pass VirtIODevice * to memory accessors, converted new tswap locations to virtio_tswap, Greg Kurz ] Signed-off-by: Greg Kurz Reviewed

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

2014-06-29 Thread Michael S. Tsirkin
From: Rusty Russell Note that st*_raw and ld*_raw are effectively replaced by st*_p and ld*_p. Signed-off-by: Rusty Russell Reviewed-by: Anthony Liguori [ pass VirtIODevice * to memory accessors, Greg Kurz ] Signed-off-by: Greg Kurz Reviewed-by: Alexander Graf Reviewed-by: Michael S. Tsir

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

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz 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 also target endian, but th

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

2014-06-29 Thread Michael S. Tsirkin
From: 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

[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] [PATCH] ahci.c: mask unused flags when reading size PRDT DBC

2014-06-29 Thread reza . jelveh
From: Reza Jelveh 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 leads to a negative of

[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 --- 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 --- a/docs/specs/v

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

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz Note that st*_raw and ld*_raw are effectively replaced by st*_p and ld*_p. Signed-off-by: Greg Kurz Reviewed-by: Alexander Graf Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/9pfs/virtio-9p-device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deleti

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

2014-06-29 Thread Michael S. Tsirkin
From: Eduardo Habkost 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). Signed-off-by: Eduardo Hab

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, wrote: > From: Riku Voipio > > 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 22/37] virtio-rng: implement per-device migration calls

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz While we are here, we also check virtio_load() return value. Signed-off-by: Greg Kurz Reviewed-by: Alexander Graf Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/virtio/virtio-rng.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-)

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 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 availa

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

2014-06-29 Thread Michael S. Tsirkin
From: Marcelo Tosatti 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 time. Signed-off-by: M

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

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz 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 from the virtio code). T

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 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 36/37] vhost-net: disable when cross-endian

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz 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-system-ppc64: vhost-net does

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

2014-06-29 Thread Michael S. Tsirkin
From: Hu Tao Signed-off-by: Hu Tao Acked-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/test-string-output-visitor.c | 109 ++--- 1 file changed, 90 insertions(+), 19 deletions(-) diff --git a/tests/test-string-output-visitor.c b/tests/tes

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

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz The device endianness is the cpu endianness at device reset time. Signed-off-by: Greg Kurz Reviewed-by: Alexander Graf Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- target-ppc/cpu.h| 2 ++ target-ppc/translate_init.c | 15 +++

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

2014-06-29 Thread Michael S. Tsirkin
From: Rusty Russell We also fix max_nr_ports at reset time as the device endianness may have changed. Signed-off-by: Rusty Russell Reviewed-by: Anthony Liguori [ pass VirtIODevice * to memory accessors, fix max_nr_ports at reset time, Greg Kurz ] Signed-off-by: Greg Kurz Reviewed-by: Ale

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

2014-06-29 Thread Michael S. Tsirkin
From: Rusty Russell Quoting original text from Rusty: "This is based on a simpler patch by Anthony Liguouri". Signed-off-by: Rusty Russell [ add VirtIODevice * argument to most helpers, Greg Kurz ] Signed-off-by: Greg Kurz Reviewed-by: Thomas Huth Reviewed-by: Alexander Graf Reviewed-by:

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

2014-06-29 Thread Michael S. Tsirkin
From: Rusty Russell Signed-off-by: Rusty Russell Reviewed-by: Anthony Liguori [ pass VirtIODevice * to memory accessors, converted new tswap locations to virtio_tswap, Greg Kurz ] Signed-off-by: Greg Kurz Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/net/virt

[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 Signed-off-by: Rusty Russell Reviewed-by: Anthony Liguori [ pass VirtIODevice * to memory accessors, Greg Kurz ] Signed-off-by: Greg Kurz Reviewed-by: Alexander Graf Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/virtio/virtio-balloon.c | 8

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

2014-06-29 Thread Michael S. Tsirkin
From: 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 s

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

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz Signed-off-by: Greg Kurz Reviewed-by: Alexander Graf Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/char/virtio-serial-bus.c | 34 -- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/hw/char/virtio-seria

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

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz Signed-off-by: Greg Kurz Reviewed-by: Alexander Graf Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/block/virtio-blk.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/hw/block/virtio-blk.c b/hw/block/virt

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

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz 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. Suggested-by: Andreas Färber Signe

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

2014-06-29 Thread Michael S. Tsirkin
From: Alexander Graf 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 [ added missing casts to uint16_t *, added From, SoB and commi

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

2014-06-29 Thread Michael S. Tsirkin
From: Cédric Le Goater 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 in the guest co

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

2014-06-29 Thread Michael S. Tsirkin
From: Greg Kurz Signed-off-by: Greg Kurz Reviewed-by: Alexander Graf Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- 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

[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 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. Signed-off-by: Nishanth A

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

2014-06-29 Thread Michael S. Tsirkin
From: Damjan Marion Signed-off-by: Damjan Marion Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- docs/specs/vhost-user.txt | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/specs/vhost-user.txt b/docs/specs/vhost-user

[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 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; option_rom_has_mr = true;

[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 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 is needed to calcula

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

2014-06-29 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" 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. Allow mismatched c

[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 Signed-off-by: Michael S. Tsirkin --- 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 set_numa_nodes(void) n

[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 Reviewed-by: Igor Mammedov --- target-openrisc/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-openrisc/translate.c b/target-openrisc/translate.c index b728718

[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 The property name is "prog_if", not "prof_if". Signed-off-by: Eduardo Habkost Reported-by: BALATON Zoltan Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/i386/pc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/incl

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

2014-06-29 Thread Michael S. Tsirkin
From: Eduardo Habkost 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 instantiated when using a

[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/qem

[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 Reviewed-by: Igor Mammedov --- 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 @@ -172,7 +172,7 @@ void set_numa_node

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" : > >> 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 archite

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

2014-06-29 Thread Max Filippov
cg/ppc: 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? T

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

2014-06-29 Thread Peter Maydell
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://github.com/OSLL/qemu-xtensa.git tags/20140629-

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] [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] [PULL 00/47] Block patches for 2.1.0-rc0

2014-06-29 Thread Peter Maydell
On 27 June 2014 20:08, Kevin Wolf 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 at: > > > g

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 r

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 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 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 qemu_get_

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 wrote: > > Old code was affected by memory gaps which resulted in buffer pointers > pointing to address outside of the mapped regions. > > Here we are introduc

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 p

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 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://repo.or.cz/qemu/qmp-unstable.git queue/qmp

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 12:4

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" > > 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

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 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: > > git://github.com/stef

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

2014-06-29 Thread riku . voipio
From: Paul Burton Add a definition of the SIOCGIFINDEX ioctl, allowing its use by target programs. Signed-off-by: Paul Burton Signed-off-by: Riku Voipio --- linux-user/ioctls.h | 1 + linux-user/syscall_defs.h | 1 + 2 files changed, 2 insertions(+) diff --git a/linux-user/ioctls.h b/l

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

2014-06-29 Thread riku . voipio
From: Paul Burton 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 expected. Signed-off-by: Pau

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

2014-06-29 Thread riku . voipio
From: Paul Burton 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 different properties.

[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 Signed-off-by: Wim Vander Schelden Signed-off-by: Riku Voipio --- linux-user/syscall.c | 46 ++ 1 file changed, 46 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 007d59d..5c175ba 100644 --- a/l

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

2014-06-29 Thread riku . voipio
From: Paul Burton Add a definition of the KDSIGACCEPT ioctl & allow its use by target programs. Signed-off-by: Paul Burton Signed-off-by: Riku Voipio --- linux-user/ioctls.h | 1 + linux-user/syscall.c | 7 +++ linux-user/syscall_defs.h | 1 + 3 files changed, 9 insertions(+)

[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, rea

[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 MIPS requires the pad field to 64b-align the data field just as ARM does. Signed-off-by: Paul Burton Signed-off-by: Riku Voipio --- linux-user/syscall_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_de

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

2014-06-29 Thread riku . voipio
From: Paul Burton 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 Signed-off-by: Riku Voipio --- linux-user/socket.h | 5 + linux-user/syscall.c | 3 +++ 2 files c

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

2014-06-29 Thread riku . voipio
From: Paul Burton 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 userland provided. Althoug

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

2014-06-29 Thread riku . voipio
From: Paul Burton 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 Signed-off-by: Riku Voipio --- linux-user/syscall.c | 6 ++ 1 file chang

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

2014-06-29 Thread riku . voipio
From: Paul Burton Translate the SO_ACCEPTCONN option to the host value & execute the syscall as expected. Signed-off-by: Paul Burton Signed-off-by: Riku Voipio --- linux-user/syscall.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 8d1

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

2014-06-29 Thread riku . voipio
From: Paul Burton 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 Signed-off-by: Riku Voipio --- linux-user/strace.l

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

2014-06-29 Thread riku . voipio
From: Christophe Lyon 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 Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 2 ++ 1 file ch

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

2014-06-29 Thread riku . voipio
From: Paul Burton 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 host_to_target_sock_type hel

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

2014-06-29 Thread riku . voipio
From: Riku Voipio 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: git://git.linaro.org/people/riku.voipio/qemu.gi

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

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 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

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 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 nbd-next > > for

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 00/32] ppc patch queue 2014-06-27

2014-06-29 Thread Peter Maydell
On 27 June 2014 12:51, Alexander Graf 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 14:08

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 Nothing to do with me, pls merge through Andrea's or Paolo's tree. FWIW Acked-by: Michael S.

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 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: > > coroutine-win3

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 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 > >> Signed-off-by: Peter Maydell > >

  1   2   >