[Qemu-devel] [PATCH] vnc: return directly if no vnc client connected

2014-09-29 Thread arei.gonglei
From: ChenLiang graphic_hw_update and vnc_refresh_server_surface aren't need to do when no vnc client connected. It can reduce lock contention, because vnc_refresh will hold global big lock two millisecond every three seconds. Signed-off-by: ChenLiang Signed-off-by: Gonglei --- ui/vnc.c | 10

Re: [Qemu-devel] [PATCH v4] Add machine parameter qemu-kvm-migration for live migrate compatibility with qemu-kvm

2014-09-29 Thread Markus Armbruster
Alex Bligh writes: [...] >>> +/* NB cirrus-vga default value is 8MB anyway, save if we >>> + * monkey patch it to change the default when the qemu-kvm-migration >>> + * machine parameter is selected >>> + */ >>> + >> >> This is too hacky for my taste. >> How about creating a new machine e.g. pc-

[Qemu-devel] [PATCH bugfix] snapshot: fix referencing wrong variable in while loop in do_delvm

2014-09-29 Thread Zhang Haoyu
The while loop variabal is "bs1", but "bs" is always passed to bdrv_snapshot_delete_by_id_or_name. Signed-off-by: Zhang Haoyu --- savevm.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/savevm.c b/savevm.c index e19ae0a..2d8eb96 100644 --- a/savevm.c +++ b/savev

Re: [Qemu-devel] [PATCH v4 2/3] usb-hid: Add high speed mouse configuration

2014-09-29 Thread Gerd Hoffmann
Hi, > Speaking about properties do I need to add something for display and > head properties? No. cheers, Gerd

[Qemu-devel] [PATCH] ssh: Don't crash if either host or path is not specified.

2014-09-29 Thread Richard W.M. Jones
$ ./qemu-img create -f qcow2 overlay \ -b 'json: { "file.driver":"ssh", "file.host":"localhost", "file.host_key_check":"no" }' qemu-img: qobject/qdict.c:193: qdict_get_obj: Assertion `obj != ((void *)0)' failed. Aborted A similar crash also happens if the file.

Re: [Qemu-devel] [PATCH v6 1/2] dump: let dump_error return error info to caller

2014-09-29 Thread Markus Armbruster
zhanghailiang writes: > The second parameter of dump_error is unused, but one purpose of > using this function is to report the error info. > > Use error_set to return the error info to the caller. > > Signed-off-by: zhanghailiang The commit message doesn't explain this patch's benefit clearly.

Re: [Qemu-devel] [PATCH] ssh: Don't crash if either host or path is not specified.

2014-09-29 Thread Gonglei (Arei)
> Subject: [Qemu-devel] [PATCH] ssh: Don't crash if either host or path is not > specified. > > $ ./qemu-img create -f qcow2 overlay \ > -b 'json: { "file.driver":"ssh", > "file.host":"localhost", > "file.host_key_check":"no" }' > qemu-img: qobject/qdict.c:193:

[Qemu-devel] [PATCH v2] ssh: Don't crash if either host or path is not specified.

2014-09-29 Thread Richard W.M. Jones
$ ./qemu-img create -f qcow2 overlay \ -b 'json: { "file.driver":"ssh", "file.host":"localhost", "file.host_key_check":"no" }' qemu-img: qobject/qdict.c:193: qdict_get_obj: Assertion `obj != ((void *)0)' failed. Aborted A similar crash also happens if the file.

Re: [Qemu-devel] [PATCH v6 1/2] dump: let dump_error return error info to caller

2014-09-29 Thread zhanghailiang
On 2014/9/29 15:48, Markus Armbruster wrote: zhanghailiang writes: The second parameter of dump_error is unused, but one purpose of using this function is to report the error info. Use error_set to return the error info to the caller. Signed-off-by: zhanghailiang The commit message doesn'

Re: [Qemu-devel] [PATCH v6 2/2] dump: Don't return error code when return an Error object

2014-09-29 Thread Markus Armbruster
zhanghailiang writes: > Functions shouldn't return an error code and an Error object at the same time. > Turn all these functions that returning Error object to void. > We also judge if a function success or fail by reference to the local_err. > > Signed-off-by: zhanghailiang > > --- > dump.c |

Re: [Qemu-devel] [PATCH] vnc: return directly if no vnc client connected

2014-09-29 Thread Gerd Hoffmann
On Mo, 2014-09-29 at 15:00 +0800, arei.gong...@huawei.com wrote: > graphic_hw_update and vnc_refresh_server_surface aren't > need to do when no vnc client connected. It can reduce > lock contention, because vnc_refresh will hold global big > lock two millisecond every three seconds. Added to vnc p

Re: [Qemu-devel] [PATCH 1/1] xen-hvm.c: Add support for Xen access to vmport

2014-09-29 Thread Alexander Graf
On 26.09.14 20:47, Don Slutz wrote: > This adds synchronisation of the vcpu registers > between Xen and QEMU. > > Signed-off-by: Don Slutz Could you instead plug into the existing cpu_synchronize_registers() framework and just implement register synchronization for the Xen side, just like it's

Re: [Qemu-devel] [PATCH bugfix] snapshot: fix referencing wrong variable in while loop in do_delvm

2014-09-29 Thread Markus Armbruster
"Zhang Haoyu" writes: > The while loop variabal is "bs1", but "bs" is always passed to > bdrv_snapshot_delete_by_id_or_name. Please limit commit message line length to around 70 characters. > > Signed-off-by: Zhang Haoyu > --- > savevm.c | 11 +-- > 1 file changed, 5 insertions(+), 6

Re: [Qemu-devel] Ping [PATCH] gtk: add support for the Pause key

2014-09-29 Thread Gerd Hoffmann
On So, 2014-09-28 at 16:54 +0200, Martin Decky wrote: > http://patchwork.ozlabs.org/patch/390074/ > > It is a rather simple patch adding support for the Pause key in the GTK > UI. It should not cause any regressions. Please apply. Thanks. Patch looks good but doesn't apply any more. Can you ple

Re: [Qemu-devel] [PATCH v3 5/7] sysbus: Add new platform bus helper device

2014-09-29 Thread Alexander Graf
On 26.09.14 14:44, Paolo Bonzini wrote: > Il 26/09/2014 14:26, Alexander Graf ha scritto: >> >> Are you sure? Imagine one sysbus device includes another. We only want >> to look at the region the lowest sysbus device exposes, no? > > IIUC this function is used to build the device tree. Yes, it'

Re: [Qemu-devel] [PATCH v4 13/19] qapi: More rigourous checking of types

2014-09-29 Thread Markus Armbruster
Markus Armbruster writes: > Eric Blake writes: > >> Now that we know every expression is valid with regards to >> its keys, we can add further tests that those keys refer to >> valid types. With this patch, all references to a type (the >> 'data': of command, type, union, and event, and the 're

Re: [Qemu-devel] [PATCH v2] ssh: Don't crash if either host or path is not specified.

2014-09-29 Thread Gonglei (Arei)
> -Original Message- > From: Richard W.M. Jones [mailto:rjo...@redhat.com] > Sent: Monday, September 29, 2014 4:06 PM > To: qemu-devel@nongnu.org > Cc: Gonglei (Arei) > Subject: [PATCH v2] ssh: Don't crash if either host or path is not specified. > > $ ./qemu-img create -f qcow2 overlay \

Re: [Qemu-devel] [PATCH v3 5/7] sysbus: Add new platform bus helper device

2014-09-29 Thread Paolo Bonzini
Il 29/09/2014 10:24, Alexander Graf ha scritto: > > > On 26.09.14 14:44, Paolo Bonzini wrote: >> Il 26/09/2014 14:26, Alexander Graf ha scritto: >>> >>> Are you sure? Imagine one sysbus device includes another. We only want >>> to look at the region the lowest sysbus device exposes, no? >> >> IIU

Re: [Qemu-devel] [PATCH 2/2] spapr_nvram: Enable migration

2014-09-29 Thread Alexander Graf
On 26.09.14 04:53, Alexey Kardashevskiy wrote: > On 09/26/2014 12:31 PM, David Gibson wrote: >> On Thu, Sep 25, 2014 at 08:06:40PM +1000, Alexey Kardashevskiy wrote: >>> On 09/25/2014 07:43 PM, Alexander Graf wrote: On 25.09.14 09:02, Alexey Kardashevskiy wrote: > The only case

Re: [Qemu-devel] [PATCH v4 14/19] qapi: More rigorous checking for type safety bypass

2014-09-29 Thread Markus Armbruster
Eric Blake writes: > Now that we have a way to validate every type, we can also be > stricter about enforcing that callers that want to bypass > type safety in generated code. Prior to this patch, it didn't > matter what value was associated with the key 'gen', but it > looked odd that 'gen':'ye

[Qemu-devel] [PATCH bugfix v2] snapshot: fix referencing wrong variable in while loop in do_delvm

2014-09-29 Thread Zhang Haoyu
The while loop variabal is "bs1", but "bs" is always passed to bdrv_snapshot_delete_by_id_or_name. Broken in commit a89d89d, v1.7.0. v1 -> v2: * add broken commit id to commit message Signed-off-by: Zhang Haoyu Reviewed-by: Markus Armbruster --- savevm.c | 11 +-- 1 file changed, 5 in

Re: [Qemu-devel] [PATCH v4 1/2] QEMUSizedBuffer based QEMUFile

2014-09-29 Thread Dr. David Alan Gilbert
* Eric Blake (ebl...@redhat.com) wrote: > On 09/17/2014 05:26 AM, Dr. David Alan Gilbert (git) wrote: > > From: "Dr. David Alan Gilbert" > > > > This is based on Stefan and Joel's patch that creates a QEMUFile that goes > > to a memory buffer; from: > > > > http://lists.gnu.org/archive/html/qemu

Re: [Qemu-devel] [RFC PATCH v0 10/15] ppc: Factor out CPU initialization code to a new routine

2014-09-29 Thread Igor Mammedov
On Mon, 29 Sep 2014 08:30:15 +0530 Bharata B Rao wrote: > On Fri, Sep 26, 2014 at 05:29:02PM +0200, Igor Mammedov wrote: > > On Thu, 4 Sep 2014 11:36:20 +0530 > > Bharata B Rao wrote: > > > > > Separate out CPU initialization code into a new routine > > > ppc_new_cpu() so that it can be used f

Re: [Qemu-devel] [PATCH v3] pc-dimm/numa: Fix stat of memory size in node when hotplug memory

2014-09-29 Thread zhanghailiang
On 2014/9/26 19:53, Igor Mammedov wrote: On Tue, 23 Sep 2014 16:11:25 +0800 zhanghailiang wrote: When do memory hotplug, if there is numa node, we should add the memory size to the corresponding node memory size. For now, it mainly affects the result of hmp command "info numa". Signed-off-by

Re: [Qemu-devel] [PATCH V3 4/7] pc: add cpu hotplug handler to PC_MACHINE

2014-09-29 Thread Igor Mammedov
On Mon, 29 Sep 2014 10:58:04 +0800 Gu Zheng wrote: > Hi Igor, > On 09/26/2014 09:06 PM, Igor Mammedov wrote: > > > On Wed, 17 Sep 2014 09:24:00 +0800 > > Gu Zheng wrote: > > > >> Add cpu hotplug handler to PC_MACHINE, which will perform the acpi > >> cpu hotplug callback via hotplug_handler AP

Re: [Qemu-devel] [PATCH v2] ui/input: fix event emitting of repeated combined keys

2014-09-29 Thread Gerd Hoffmann
Hi, > > /me wonders what happened to the input-send-event patch from marcelo, > > see http://patchwork.ozlabs.org/patch/360649/ > > > > According to patchwork I've picked it up. But it is neither upstream > > nor in my local input branch. And I can't remember what happened :( > > Marcelo, any

Re: [Qemu-devel] [PATCH v2] ui/input: fix event emitting of repeated combined keys

2014-09-29 Thread Gerd Hoffmann
Hi, > It doesn't matter, so users might release the modifier key or not. > we should make both works > > 1) > sendkey Ctrl-Scroll > sendkey Ctrl-Scroll Good to know this works. > 2) > sendkey Ctrl-Scroll-Scroll Why? This tries to squeeze something into the sendkey interface which it doesn't

Re: [Qemu-devel] [PATCH bugfix v2] snapshot: fix referencing wrong variable in while loop in do_delvm

2014-09-29 Thread Markus Armbruster
Dropping cc: xiaw...@linux.ibm.com, because I got a "user unknown" bounce. Copying qemu-stable. "Zhang Haoyu" writes: > The while loop variabal is "bs1", > but "bs" is always passed to bdrv_snapshot_delete_by_id_or_name. > Broken in commit a89d89d, v1.7.0. > > v1 -> v2: > * add broken commit i

Re: [Qemu-devel] [PATCH] main-loop: Use epoll on Linux

2014-09-29 Thread Fam Zheng
On Mon, 09/29 13:26, Fam Zheng wrote: > A new implementation for qemu_poll_ns based on epoll is introduced here > to address the slowness of g_poll and ppoll when the number of fds are > high. > > On my laptop this would reduce the virtio-blk on top of null-aio > device's response time from 32 us

Re: [Qemu-devel] [PATCH v2 00/36] complete conversion to hotplug-handler API

2014-09-29 Thread Gerd Hoffmann
Hi, > Series unifies different hotplug mechanisms to a recent > hotplug-handler API and does shallow conversion of > devices that still use legacy qdev hotplug to it dropping > not used after that legacy hotplug path [29/30]. > It also relaces SCSI's own way to do hotplug/unplug with > hotplug-h

[Qemu-devel] [PATCH v2 00/11] vga: cleanup and endianness patch series

2014-09-29 Thread Gerd Hoffmann
Hi, Here comes v2 of the vga patches, this time the two patch series combined into one. Fixed issues found by David Gibson in review, fixed some codestyle issues. Nothing major. Should be ready for merge now, /me plans to send a pull req later this week, possibly excluding patch #11 as I'd li

[Qemu-devel] [PATCH v2 07/11] vga: Remove some "should be done in BIOS" comments

2014-09-29 Thread Gerd Hoffmann
From: Benjamin Herrenschmidt Not all platforms have a VGA BIOS, powerpc typically relies on using the DISPI interface to initialize the card. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Gerd Hoffmann Reviewed-by: David Gibson --- hw/display/vga.c | 6 ++ 1 file changed, 2 insert

[Qemu-devel] [PATCH v2 01/11] vga: Start cutting out non-32bpp conversion support

2014-09-29 Thread Gerd Hoffmann
From: Benjamin Herrenschmidt Nowadays, we either share a surface with the host, or we create a 32bpp ARGB console surface. So we only need to draw/convert to 32bpp, enabling us to remove all but one instance of vga_template.h inclusion (to be further cleaned up), rgb_to_pixel_* etc... Signed-of

[Qemu-devel] [PATCH v2 09/11] vga: Make fb endian a common state variable

2014-09-29 Thread Gerd Hoffmann
From: Benjamin Herrenschmidt And initialize it based on target endian Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Gerd Hoffmann Reviewed-by: David Gibson --- hw/display/vga.c | 32 +++- hw/display/vga_int.h | 1 + 2 files changed, 20 insertions(+), 1

[Qemu-devel] [PATCH v2 11/11] vga-pci: add qext region to mmio

2014-09-29 Thread Gerd Hoffmann
Add a qemu extented register range to the standard vga mmio bar. Right nowe there are two registers: One readonly register returning the size of the region (so we can easily add more registers there if needed) and one endian control register, so guests (especially ppc) can flip the framebuffer end

[Qemu-devel] [PATCH v2 08/11] vga: Rename vga_template.h to vga-helpers.h

2014-09-29 Thread Gerd Hoffmann
From: Benjamin Herrenschmidt It's no longer a template, we only instanciate the file once. Keep it a #included file so the functions remain static. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Gerd Hoffmann Reviewed-by: David Gibson --- hw/display/{vga_template.h => vga-helpers.h} |

[Qemu-devel] [PATCH v2 06/11] cirrus: Remove non-32bpp cursor drawing

2014-09-29 Thread Gerd Hoffmann
From: Benjamin Herrenschmidt We only draw cursor on non-shared surfaces (so it seems...) and these are always 32bpp Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Gerd Hoffmann Reviewed-by: David Gibson --- hw/display/cirrus_vga.c | 64 +--- hw/display/cir

[Qemu-devel] [PATCH v2 05/11] vga: Simplify vga_draw_blank() a bit

2014-09-29 Thread Gerd Hoffmann
From: Benjamin Herrenschmidt The test for surface_bits_per_pixel() isn't necessary anymore, the 8bpp case never happens. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Gerd Hoffmann Reviewed-by: David Gibson --- hw/display/vga.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletio

[Qemu-devel] [PATCH v2 04/11] vga: Remove rgb_to_pixel indirection

2014-09-29 Thread Gerd Hoffmann
From: Benjamin Herrenschmidt We always use rgb_to_pixel32 nowadays. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Gerd Hoffmann Reviewed-by: David Gibson --- hw/display/cirrus_vga.c | 15 +-- hw/display/vga.c| 31 ++- hw/display/vga_int.

[Qemu-devel] [PATCH v2 02/11] vga: Remove remainder of old conversion cruft

2014-09-29 Thread Gerd Hoffmann
From: Benjamin Herrenschmidt All the macros used to generate different versions of vga_template.h are now unnecessary, take them all out and remove the _32 suffix from most functions. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Gerd Hoffmann Reviewed-by: David Gibson --- hw/display/

[Qemu-devel] [PATCH v2 03/11] vga: Separate LE and BE conversion functions

2014-09-29 Thread Gerd Hoffmann
From: Benjamin Herrenschmidt Provide different functions for converting from an LE vs a BE framebuffer. We cannot rely on the simple cases always being shared surfaces since cirrus will need to always shadow for cursor emulation, so we need the full set of functions to be able to later handle run

[Qemu-devel] [PATCH v2 10/11] vga: Add endian control register

2014-09-29 Thread Gerd Hoffmann
From: Benjamin Herrenschmidt Include the endian state in the migration stream as an optional subsection which we only include when the endian isn't the default, thus enabling backward compatibility of the common case. Signed-off-by: Benjamin Herrenschmidt Changes by kraxel: * Remove bochs dis

Re: [Qemu-devel] [PATCH V3 7/7] acpi/cpu-hotplug: introduce help function to keep bit setting in one place

2014-09-29 Thread Gu Zheng
Hi Igor, On 09/26/2014 09:37 PM, Igor Mammedov wrote: > On Wed, 17 Sep 2014 09:24:03 +0800 > Gu Zheng wrote: > >> Introduce help function acpi_set_local_sts() to simplify acpi_cpu_plug_cb >> and acpi_cpu_hotplug_init, so that we can keep bit setting in one place. >> >> Signed-off-by: Gu Zheng >

[Qemu-devel] [PATCH v5 0/2] In memory QEMUFile

2014-09-29 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" This patch-pair adds the QEMUSizedBuffer based in-memory QEMUFile written by Stefan Berger and Joel Schopp. I've made some fixes and modified the existing test-vmstate to use it for some test cases. While there's nothing other than test cases using it yet, I t

[Qemu-devel] [PATCH v5 1/2] QEMUSizedBuffer based QEMUFile

2014-09-29 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" This is based on Stefan and Joel's patch that creates a QEMUFile that goes to a memory buffer; from: http://lists.gnu.org/archive/html/qemu-devel/2013-03/msg05036.html Using the QEMUFile interface, this patch adds support functions for operating on in-memory sized

[Qemu-devel] [PATCH v5 2/2] Tests: QEMUSizedBuffer/QEMUBuffer

2014-09-29 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Modify some of tests/test-vmstate.c to use the in memory file based on QEMUSizedBuffer to provide basic testing of QEMUSizedBuffer and the associated memory backed QEMUFile type. Only some of the tests are changed so that the fd backed QEMUFile is still tested. Si

Re: [Qemu-devel] [PATCH V3 7/7] acpi/cpu-hotplug: introduce help function to keep bit setting in one place

2014-09-29 Thread Igor Mammedov
On Mon, 29 Sep 2014 17:22:08 +0800 Gu Zheng wrote: > Hi Igor, > On 09/26/2014 09:37 PM, Igor Mammedov wrote: > > > On Wed, 17 Sep 2014 09:24:03 +0800 > > Gu Zheng wrote: > > > >> Introduce help function acpi_set_local_sts() to simplify > >> acpi_cpu_plug_cb and acpi_cpu_hotplug_init, so that w

Re: [Qemu-devel] [PATCH bugfix v2] snapshot: fix referencing wrong variable in while loop in do_delvm

2014-09-29 Thread Kevin Wolf
Am 29.09.2014 um 10:38 hat Zhang Haoyu geschrieben: > The while loop variabal is "bs1", > but "bs" is always passed to bdrv_snapshot_delete_by_id_or_name. > Broken in commit a89d89d, v1.7.0. > > v1 -> v2: > * add broken commit id to commit message > > Signed-off-by: Zhang Haoyu > Reviewed-by: M

Re: [Qemu-devel] [PATCH bugfix v2] snapshot: fix referencing wrong variable in while loop in do_delvm

2014-09-29 Thread Stefan Hajnoczi
On Mon, Sep 29, 2014 at 11:18:33AM +0200, Markus Armbruster wrote: > > The while loop variabal is "bs1", > > but "bs" is always passed to bdrv_snapshot_delete_by_id_or_name. > > Broken in commit a89d89d, v1.7.0. > > > > v1 -> v2: > > * add broken commit id to commit message > > Patch version info

Re: [Qemu-devel] [Xen-devel] [PATCH 2/2] xen:i386:pc_piix: create isa bridge specific to IGD passthrough

2014-09-29 Thread Michael S. Tsirkin
On Sun, Sep 28, 2014 at 10:59:05AM +0800, Chen, Tiejun wrote: > On 2014/9/3 9:40, Kay, Allen M wrote: > > > > > >>-Original Message- > >>From: Chen, Tiejun > >>Sent: Monday, September 01, 2014 12:50 AM > >>To: Michael S. Tsirkin > >>Cc: xen-de...@lists.xensource.com; Kay, Allen M; qemu-deve

Re: [Qemu-devel] [PATCH V3 7/7] acpi/cpu-hotplug: introduce help function to keep bit setting in one place

2014-09-29 Thread Gu Zheng
On 09/29/2014 05:47 PM, Igor Mammedov wrote: > On Mon, 29 Sep 2014 17:22:08 +0800 > Gu Zheng wrote: > >> Hi Igor, >> On 09/26/2014 09:37 PM, Igor Mammedov wrote: >> >>> On Wed, 17 Sep 2014 09:24:03 +0800 >>> Gu Zheng wrote: >>> Introduce help function acpi_set_local_sts() to simplify

Re: [Qemu-devel] [PATCH v4] Add machine parameter qemu-kvm-migration for live migrate compatibility with qemu-kvm

2014-09-29 Thread Michael S. Tsirkin
On Sun, Sep 28, 2014 at 09:33:08PM +0100, Alex Bligh wrote: > Hang on a second! v2 of this patch DID use a new virtual machine, > called exactly that. I thought you were objecting to that and > wanting a machine parameter instead! It's far easier with a new > machine type, and I'd far prefer a new

[Qemu-devel] build regression on osx in block layer

2014-09-29 Thread Igor Mammedov
Build fails with: $ make LINK qemu-nbd Undefined symbols for architecture x86_64: "_posix_fallocate", referenced from: _raw_create in raw-posix.o ld: symbol(s) not found for architecture x86_64 introduced by 06247428be raw-posix: Add falloc and full preallocation

Re: [Qemu-devel] [PATCH v4 7/7] virtio-scsi: Handle TMF request cancellation asynchronously

2014-09-29 Thread Paolo Bonzini
Il 28/09/2014 03:48, Fam Zheng ha scritto: > +virtio_scsi_complete_req(req); > +} else { > +assert(r = -EINPROGRESS); > +} > } = instead of == here. Apart from this, the patch looks good. Thanks! Paolo

Re: [Qemu-devel] [PATCH v2 00/36] complete conversion to hotplug-handler API

2014-09-29 Thread Michael S. Tsirkin
On Fri, Sep 26, 2014 at 09:28:05AM +, Igor Mammedov wrote: > Changes since v1: > * added usb-uas test > * drop hotplug check in bus_add_child() > * make SCSI & USB bus as default HotplugHandler > * fixed dummy HBA hot(un)plug > * fixed hotunplug on s390x > * prevent hotplug of non h

Re: [Qemu-devel] [PATCH v4] Add machine parameter qemu-kvm-migration for live migrate compatibility with qemu-kvm

2014-09-29 Thread Alex Bligh
On 29 Sep 2014, at 11:08, Michael S. Tsirkin wrote: > On Sun, Sep 28, 2014 at 09:33:08PM +0100, Alex Bligh wrote: >> Hang on a second! v2 of this patch DID use a new virtual machine, >> called exactly that. I thought you were objecting to that and >> wanting a machine parameter instead! It's far

Re: [Qemu-devel] [PATCH bugfix v2] snapshot: fix referencing wrong variable in while loop in do_delvm

2014-09-29 Thread Stefan Hajnoczi
On Mon, Sep 29, 2014 at 04:38:02PM +0800, Zhang Haoyu wrote: > The while loop variabal is "bs1", > but "bs" is always passed to bdrv_snapshot_delete_by_id_or_name. > Broken in commit a89d89d, v1.7.0. > > v1 -> v2: > * add broken commit id to commit message > > Signed-off-by: Zhang Haoyu > Revie

Re: [Qemu-devel] [PATCH 1/1] xen-hvm.c: Add support for Xen access to vmport

2014-09-29 Thread Stefano Stabellini
On Fri, 26 Sep 2014, Don Slutz wrote: > This adds synchronisation of the vcpu registers > between Xen and QEMU. > > Signed-off-by: Don Slutz [...] > diff --git a/xen-hvm.c b/xen-hvm.c > index 05e522c..e1274bb 100644 > --- a/xen-hvm.c > +++ b/xen-hvm.c > @@ -857,14 +857,48 @@ static void cpu_han

Re: [Qemu-devel] [PATCH V3 7/7] acpi/cpu-hotplug: introduce help function to keep bit setting in one place

2014-09-29 Thread Igor Mammedov
On Mon, 29 Sep 2014 17:44:27 +0800 Gu Zheng wrote: > On 09/29/2014 05:47 PM, Igor Mammedov wrote: > > > On Mon, 29 Sep 2014 17:22:08 +0800 > > Gu Zheng wrote: > > > >> Hi Igor, > >> On 09/26/2014 09:37 PM, Igor Mammedov wrote: > >> > >>> On Wed, 17 Sep 2014 09:24:03 +0800 > >>> Gu Zheng wrote

Re: [Qemu-devel] [PATCH v2] ssh: Don't crash if either host or path is not specified.

2014-09-29 Thread Stefan Hajnoczi
On Mon, Sep 29, 2014 at 09:06:22AM +0100, Richard W.M. Jones wrote: > $ ./qemu-img create -f qcow2 overlay \ > -b 'json: { "file.driver":"ssh", > "file.host":"localhost", > "file.host_key_check":"no" }' > qemu-img: qobject/qdict.c:193: qdict_get_obj: Assertion `o

[Qemu-devel] [PULL 0/2] spice patch queue

2014-09-29 Thread Gerd Hoffmann
-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2014-09-26 15:41:50 +0100) are available in the git repository at: git://anongit.freedesktop.org/spice/qemu tags/pull-spice-20140929-1 for you to fetch changes up to 151623353f4a3da4daec29d658c10ef3b57bd462:

[Qemu-devel] [PULL 2/2] qxl: use graphic_console_set_hwops

2014-09-29 Thread Gerd Hoffmann
Simply switch function pointers when entering/leaving vga mode. Allows to remove wrapper functions which do nothing but dispatch calls depending on the current qxl mode. Signed-off-by: Gerd Hoffmann --- hw/display/qxl.c | 49 + 1 file changed, 9 in

[Qemu-devel] [PULL 1/2] console: add graphic_console_set_hwops

2014-09-29 Thread Gerd Hoffmann
Add a function to allow display emulations to switch the hwops function pointers. This is useful for devices which have two completely different operation modes. Typical case is the vga compatibility mode vs. native mode in qxl and the upcoming virtio-vga device. Signed-off-by: Gerd Hoffmann --

Re: [Qemu-devel] [PATCH v2 00/36] complete conversion to hotplug-handler API

2014-09-29 Thread Igor Mammedov
On Mon, 29 Sep 2014 13:16:08 +0300 "Michael S. Tsirkin" wrote: > On Fri, Sep 26, 2014 at 09:28:05AM +, Igor Mammedov wrote: > > Changes since v1: > > * added usb-uas test > > * drop hotplug check in bus_add_child() > > * make SCSI & USB bus as default HotplugHandler > > * fixed dummy

Re: [Qemu-devel] [PATCH] main-loop: Use epoll on Linux

2014-09-29 Thread Stefan Hajnoczi
On Mon, Sep 29, 2014 at 01:26:29PM +0800, Fam Zheng wrote: > +int qemu_epoll(GPollFD *fds, guint nfds, int64_t timeout) > +{ > +/* A copy of last fd array, used to skip epoll_prepare when nothing > + * changed. */ > +static GPollFD *last_fds; > +static guint last_nfds; > +/* An

Re: [Qemu-devel] [PATCH 1/1] xen-hvm.c: Add support for Xen access to vmport

2014-09-29 Thread Stefano Stabellini
On Mon, 29 Sep 2014, Stefano Stabellini wrote: > On Fri, 26 Sep 2014, Don Slutz wrote: > > This adds synchronisation of the vcpu registers > > between Xen and QEMU. > > > > Signed-off-by: Don Slutz > > [...] > > > diff --git a/xen-hvm.c b/xen-hvm.c > > index 05e522c..e1274bb 100644 > > --- a/xe

Re: [Qemu-devel] [PATCH] main-loop: Use epoll on Linux

2014-09-29 Thread Stefan Hajnoczi
On Mon, Sep 29, 2014 at 01:26:29PM +0800, Fam Zheng wrote: > +static bool g_poll_fds_changed(const GPollFD *fds_a, const guint nfds_a, > + const GPollFD *fds_b, const guint nfds_b) ... > +static inline int g_io_condition_from_epoll_events(int e) > +{ Please don't use

Re: [Qemu-devel] [PATCH v7 00/11] target-arm: Parts of the AArch64 EL2/3 exception model

2014-09-29 Thread Jan Kiszka
On 2014-09-26 17:23, Peter Maydell wrote: > On 26 September 2014 09:08, Edgar E. Iglesias > wrote: >> From: "Edgar E. Iglesias" >> >> Hi, >> >> This is a second round of AArch64 EL2/3 patches working on the exception >> model. Among other things adding HVC/SMC, interrupt routing to EL2/3 and >>

Re: [Qemu-devel] [PATCH v2 00/36] complete conversion to hotplug-handler API

2014-09-29 Thread Michael S. Tsirkin
On Mon, Sep 29, 2014 at 12:28:04PM +0200, Igor Mammedov wrote: > On Mon, 29 Sep 2014 13:16:08 +0300 > "Michael S. Tsirkin" wrote: > > > On Fri, Sep 26, 2014 at 09:28:05AM +, Igor Mammedov wrote: > > > Changes since v1: > > > * added usb-uas test > > > * drop hotplug check in bus_add_child

Re: [Qemu-devel] [PATCH v7 00/11] target-arm: Parts of the AArch64 EL2/3 exception model

2014-09-29 Thread Peter Maydell
On 29 September 2014 11:31, Jan Kiszka wrote: > Sorry for hijacking the thread, but it seems related: These bits address > AArch64, but what is the status of AArch32 /wrt hyp mode emulation? > After playing with the "fast" model, I would be glad to find such > support in QEMU rather sooner than la

Re: [Qemu-devel] [PULL 00/12] Trivial patches for 2014-09-26

2014-09-29 Thread Peter Maydell
On 26 September 2014 18:36, Michael Tokarev wrote: > Here goes another trivial-patches pull request. Cleanups, > travis.yml changes, coding style changes and a little > bugfix for stable (avoiding running qom test twice). > > Please consider applying/pulling. > > Thanks, > > /mjt > > The followin

Re: [Qemu-devel] [PATCH v7 00/11] target-arm: Parts of the AArch64 EL2/3 exception model

2014-09-29 Thread Jan Kiszka
On 2014-09-29 12:41, Peter Maydell wrote: > On 29 September 2014 11:31, Jan Kiszka wrote: >> Sorry for hijacking the thread, but it seems related: These bits address >> AArch64, but what is the status of AArch32 /wrt hyp mode emulation? >> After playing with the "fast" model, I would be glad to fi

Re: [Qemu-devel] [PATCH v3 0/3] add check for PCIe root ports and downstream ports

2014-09-29 Thread Gonglei (Arei)
Hi, Michael Would you give me some response? I have pinged this patch series the third time. :( Thanks a lot! Best regards, -Gonglei > -Original Message- > From: Gonglei (Arei) > Sent: Monday, September 01, 2014 9:29 PM > To: qemu-devel@nongnu.org > Cc: m...@redhat.com; Huangweidong (C

Re: [Qemu-devel] [PATCH v4 7/7] virtio-scsi: Handle TMF request cancellation asynchronously

2014-09-29 Thread Paolo Bonzini
Il 29/09/2014 12:11, Paolo Bonzini ha scritto: > Il 28/09/2014 03:48, Fam Zheng ha scritto: >> +virtio_scsi_complete_req(req); >> +} else { >> +assert(r = -EINPROGRESS); >> +} >> } > > = instead of == here. > > Apart from this, the patch looks good. Thanks! Hmm, there's

Re: [Qemu-devel] [PATCH v2 17/36] qdev: add wrapper to set BUS as HotplugHandler

2014-09-29 Thread Paolo Bonzini
Il 26/09/2014 11:28, Igor Mammedov ha scritto: > to be used for conversion of SCSI and USB devices, > and would allow to make every HBA/USB host switch > to HotplugHandler API without touching each controller > explicitly. > > Signed-off-by: Igor Mammedov > --- > hw/core/qdev.c | 19

Re: [Qemu-devel] [PATCH v2 13/36] qdev: do not allow to instantiate non hotpluggable device with device_add

2014-09-29 Thread Paolo Bonzini
Il 26/09/2014 11:28, Igor Mammedov ha scritto: > It will allow explicitly mark device as not hotpluggable and > avoid its creation with following error at realize time > and destroying it afterwards anyway. Instead of it will > error out even before instance of device is created. > > Signed-off-by

Re: [Qemu-devel] [PATCH v2 19/36] target-i386: ICC bus: drop BusState.allow_hotplug

2014-09-29 Thread Paolo Bonzini
Il 26/09/2014 11:28, Igor Mammedov ha scritto: > since bus_add_child() no longer cares if BUS is hotpluggable > or not, there is no need in setting allow_hotplug field. > > Signed-off-by: Igor Mammedov > --- > hw/cpu/icc_bus.c | 8 > 1 file changed, 8 deletions(-) > > diff --git a/hw/c

Re: [Qemu-devel] [PATCH v2 18/36] qdev: drop hotplug check from bus_add_child()

2014-09-29 Thread Paolo Bonzini
Il 26/09/2014 11:28, Igor Mammedov ha scritto: > check is too restrictive and does not allow > to add childs to just created bus during hotplug > when the bus is part of composite device. > > Removing check from bus_add_child() doesn't affect > devices creatable with device_add/del commands since

Re: [Qemu-devel] [PATCH RESEND 0/9] virtio: fix virtio child recount in transports

2014-09-29 Thread Cornelia Huck
On Sat, 27 Sep 2014 10:37:23 + "Gonglei (Arei)" wrote: > > > One thing I noticed is that the various devices end up with similar > > > code in the end: > > > > > > object_initialize(&dev->vdev, sizeof(dev->vdev), TYPE_WHATEVER); > > > object_property_add_child(obj, "virtio-backend",

Re: [Qemu-devel] [PATCH 1/1] xen-hvm.c: Add support for Xen access to vmport

2014-09-29 Thread Paolo Bonzini
Il 29/09/2014 10:12, Alexander Graf ha scritto: > Could you instead plug into the existing cpu_synchronize_registers() > framework and just implement register synchronization for the Xen side, > just like it's been done for KVM? :) No, because here it's Xen that sends out the register contents. W

Re: [Qemu-devel] [PATCH v2 14/36] qdev: HotplugHandler: rename unplug callback to unplug_request

2014-09-29 Thread Michael S. Tsirkin
On Fri, Sep 26, 2014 at 09:28:19AM +, Igor Mammedov wrote: > 'HotplugHandler.unplug' callback is currently used as async > call to issue unplug request for device that implements it. > Renaming 'unplug' callback to 'unplug_request' should help to > avoid confusion about what callback does and w

Re: [Qemu-devel] [PATCH] libqos: use microseconds instead of iterations for virtio timeout

2014-09-29 Thread Peter Maydell
On 26 September 2014 17:35, Stefan Hajnoczi wrote: > Some hosts are slow or overloaded so test execution takes a long time. > Test cases use timeouts to protect against an infinite loop stalling the > test forever (especially important in automated test setups). > > Commit 6cd14054b67774cc58a51fca

Re: [Qemu-devel] [PATCH RESEND 0/9] virtio: fix virtio child recount in transports

2014-09-29 Thread Cornelia Huck
On Fri, 26 Sep 2014 16:45:38 +0800 wrote: > Gonglei (9): > virtio-net: use aliases instead of duplicate qdev properties > virtio: fix virtio-net child refcount in transports > virtio/vhost scsi: use aliases instead of duplicate qdev properties > virtio/vhost-scsi: fix virtio-scsi/vhost-sc

Re: [Qemu-devel] [PATCH 1/1] xen-hvm.c: Add support for Xen access to vmport

2014-09-29 Thread Alexander Graf
On 29.09.14 13:10, Paolo Bonzini wrote: > Il 29/09/2014 10:12, Alexander Graf ha scritto: >> Could you instead plug into the existing cpu_synchronize_registers() >> framework and just implement register synchronization for the Xen side, >> just like it's been done for KVM? :) > > No, because her

Re: [Qemu-devel] KVM call for agenda for 2014-09-30

2014-09-29 Thread Frederic Konrad
On 28/09/2014 18:33, Juan Quintela wrote: Hi Please, send any topic that you are interested in covering. Call details: 15:00 CEST 13:00 UTC 09:00 EDT Every two weeks By popular demand, a google calendar public entry with it https://www.google.com/calendar/embed?src=dG9iMXRqcXAz

Re: [Qemu-devel] [PATCH v3 15/23] ide: Complete conversion from BlockDriverState to BlockBackend

2014-09-29 Thread Kevin Wolf
Am 16.09.2014 um 20:12 hat Markus Armbruster geschrieben: > Add a BlockBackend member to TrimAIOCB, so ide_issue_trim_cb() can use > blk_aio_discard() instead of bdrv_aio_discard(). > > Signed-off-by: Markus Armbruster Reviewed-by: Kevin Wolf

Re: [Qemu-devel] [PATCH v3 16/23] pc87312: Drop unused members of PC87312State

2014-09-29 Thread Kevin Wolf
Am 16.09.2014 um 20:12 hat Markus Armbruster geschrieben: > Signed-off-by: Markus Armbruster Reviewed-by: Kevin Wolf

Re: [Qemu-devel] [PATCH RESEND 0/9] virtio: fix virtio child recount in transports

2014-09-29 Thread Gonglei (Arei)
> From: Cornelia Huck [mailto:cornelia.h...@de.ibm.com] > Sent: Monday, September 29, 2014 6:53 PM > Subject: Re: [PATCH RESEND 0/9] virtio: fix virtio child recount in transports > > On Sat, 27 Sep 2014 10:37:23 + > "Gonglei (Arei)" wrote: > > > > > One thing I noticed is that the various d

Re: [Qemu-devel] [PATCH v3 17/23] blockdev: Drop superfluous DriveInfo member id

2014-09-29 Thread Kevin Wolf
Am 16.09.2014 um 20:12 hat Markus Armbruster geschrieben: > Signed-off-by: Markus Armbruster Reviewed-by: Kevin Wolf

[Qemu-devel] [PATCH V4 5/8] pc: Update rtc_cmos in pc_cpu_plug

2014-09-29 Thread Gu Zheng
Update rtc_cmos in pc_cpu_plug directly instead of the notifier. v4: -Make link property in PCMachine rather than the global variables. -Split out the removal of unused notifier into separate patch. Signed-off-by: Gu Zheng --- hw/i386/pc.c | 37

[Qemu-devel] [PATCH V4 1/8] acpi/cpu: add cpu hotplug callback function to match hotplug_handler API

2014-09-29 Thread Gu Zheng
v4: -convert CPUState *cpu to DeviceState *dev like it's done for other handlers and do cast to CPU inside. v2: -add errp argument to catch error. -return error instead of aborting if cpu id is invalid. -make acpi_cpu_plug_cb as a wrapper around AcpiCpuHotplug_add. Signed-off-by: Gu Zheng

[Qemu-devel] [PATCH V4 0/8] cpu/acpi: convert cpu hot plug to hotplug_handler API

2014-09-29 Thread Gu Zheng
Previously we use cpu_added_notifiers to register cpu hotplug notifier callback which is not able to pass/handle errors, so we switch it to unified hotplug handler API which allows to pass errors and would allow to cancel device_add in case of error. Thanks very much for Igor's review and suggestio

Re: [Qemu-devel] [PATCH 1/1] xen-hvm.c: Add support for Xen access to vmport

2014-09-29 Thread Paolo Bonzini
Il 29/09/2014 13:53, Alexander Graf ha scritto: > > cpu_handle_ioreq() > { > ... > > if (req->type == IOPORT_REGISTERS_SYNCHRONIZED) { > cpu->xen_vcpu_dirty = true; > synchronize_xen_to_env(xenptr, cpu); > } > > handle_ioreq(); > > if (req->type == IOPORT

Re: [Qemu-devel] [Xen-devel] [PATCH 3/3] xenfb: Add "feature-no-abs-rescale" for Windows PV frontend

2014-09-29 Thread Ian Campbell
On Thu, 2014-09-11 at 02:23 +0100, Stefano Stabellini wrote: Stefano, In the context of this patch could you also take a look at Owen's xenfb documentation patches[0], I think you probably know the most about this particular protocol. Ian. [0] <1411376699-8175-1-git-send-email-owen.sm...@citrix

[Qemu-devel] [PATCH V4 2/8] acpi:ich9: convert cpu hotplug handle to hotplug_handler API

2014-09-29 Thread Gu Zheng
Convert notifier based hotplug handle to hotplug_handler API. Signed-off-by: Gu Zheng --- hw/acpi/ich9.c | 13 ++--- include/hw/acpi/ich9.h |1 - 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c index 7b14bbb..7585364 100644 --

[Qemu-devel] [PATCH V4 3/8] acpi:piix4: convert cpu hotplug handle to hotplug_handler API

2014-09-29 Thread Gu Zheng
Convert notifier based hotplug handle to hotplug_handler API, and remove the unused AcpiCpuHotplug_add(). v2: -remove the unused AcpiCpuHotplug_add(). Signed-off-by: Gu Zheng --- hw/acpi/cpu_hotplug.c | 14 ++ hw/acpi/piix4.c | 14 ++ include/hw

[Qemu-devel] [PATCH V4 8/8] acpi/cpu-hotplug: introduce help function to keep bit setting in one place

2014-09-29 Thread Gu Zheng
Introduce help function acpi_set_local_sts() to simplify acpi_cpu_plug_cb and acpi_cpu_hotplug_init, so that we can keep bit setting in one place. Signed-off-by: Gu Zheng --- hw/acpi/cpu_hotplug.c | 23 +++ 1 files changed, 15 insertions(+), 8 deletions(-) diff --git a/hw/

[Qemu-devel] [PATCH V4 7/8] cpu-hotplug: rename function for better readability

2014-09-29 Thread Gu Zheng
Rename: AcpiCpuHotplug_init --> acpi_cpu_hotplug_init AcpiCpuHotplug_ops --> acpi_cpu_hotplug_ops for better readability, just cleanup. Signed-off-by: Gu Zheng --- hw/acpi/cpu_hotplug.c |4 ++-- hw/acpi/ich9.c|4 ++-- hw/acpi/piix4.c |4 ++-- inc

[Qemu-devel] [PATCH V4 6/8] qom/cpu: remove the unused CPU hot-plug notifier

2014-09-29 Thread Gu Zheng
Signed-off-by: Gu Zheng --- include/sysemu/sysemu.h |3 --- qom/cpu.c |9 - 2 files changed, 0 insertions(+), 12 deletions(-) diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index d8539fd..acfe494 100644 --- a/include/sysemu/sysemu.h +++ b/include/sys

[Qemu-devel] [PATCH V4 4/8] pc: add cpu hotplug handler to PC_MACHINE

2014-09-29 Thread Gu Zheng
Add cpu hotplug handler to PC_MACHINE, which will perform the acpi cpu hotplug callback via hotplug_handler API. v3: -deal with start up cpus in a more neat way as Igor suggested. v2: -just rebase. Signed-off-by: Gu Zheng --- hw/i386/pc.c | 26 +- 1 files changed, 25

  1   2   3   >