Re: [Qemu-devel] [PATCH] spice: increase the verbosity of spice section in qemu --help

2012-08-26 Thread Yonit Halperin
On 08/21/2012 03:31 PM, Eric Blake wrote: On 08/21/2012 04:54 AM, Yonit Halperin wrote: Added all spice options to the help string. This can be used by libvirt to determine which spice related features are supported by qemu. For older released, this is true; but for future versions of qemu,

Re: [Qemu-devel] qcow2: online snasphots : internal vs external ?

2012-08-26 Thread Stefan Hajnoczi
On Sat, Aug 25, 2012 at 6:06 PM, Alexandre DERUMIER aderum...@odiso.com wrote: I work since many years with snapshot on zfs or netapp, and on these system like ceph, I can rollback at the time of the snapshot, and have a view of when the snapshot was taken. exemple : image1 : empty dir /

Re: [Qemu-devel] [Bug 1036363] Re: Major network performance problems on AMD hardware

2012-08-26 Thread Stefan Hajnoczi
On Sun, Aug 26, 2012 at 1:08 AM, Ziemowit Pierzycki ziemo...@pierzycki.com wrote: Executed another test: F16 KVM -- 15 gbps -- F17 VM So why is F16 much faster? You could try bisecting to find the change that slowed down networking: $ git clone

[Qemu-devel] [PATCH for 1.2] memory: Fix copypaste mistake in memory_region_iorange_write

2012-08-26 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com The last argument of find_portio is write, so this must be true here. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- We were likely lucky so far and didn't hit this - it would have caused an assertion. However, there are also rarely used devices...

Re: [Qemu-devel] [PATCH V5 2/8] hw/acpi_piix4.c: replace register_ioport*

2012-08-26 Thread Jan Kiszka
On 2012-08-22 14:27, Julien Grall wrote: This patch replaces all register_ioport* with the new memory API. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4.c | 160

Re: [Qemu-devel] [PATCH V5 3/8] hw/cirrus_vga.c: replace register_ioport*

2012-08-26 Thread Jan Kiszka
On 2012-08-22 14:27, Julien Grall wrote: This patch replaces all register_ioport* with portio_*. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/cirrus_vga.c | 42 -- 1 files

Re: [Qemu-devel] [PATCH V5 2/8] hw/acpi_piix4.c: replace register_ioport*

2012-08-26 Thread Jan Kiszka
On 2012-08-26 11:10, Jan Kiszka wrote: On 2012-08-22 14:27, Julien Grall wrote: This patch replaces all register_ioport* with the new memory API. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4.c | 160

Re: [Qemu-devel] qcow2: online snasphots : internal vs external ?

2012-08-26 Thread Alexandre DERUMIER
Using snapshot capabilities of the underlying storage is a good idea. LVM snapshots have been used with KVM for a long time. The same works for zfs, btrfs, etc. They are probably more efficient than using QEMU's external snapshots, which must copy data between image files when flattening the image

Re: [Qemu-devel] Windows slow boot: contractor wanted

2012-08-26 Thread Richard Davies
Rik van Riel wrote: Can you get a backtrace to that _raw_spin_lock_irqsave, to see from where it is running into lock contention? It would be good to know whether it is isolate_freepages_block, yield_to, kvm_vcpu_on_spin or something else... Hi Rik, I got into a slow boot situation on

[Qemu-devel] How to edit qemu-kvm DMI strings?

2012-08-26 Thread commiethebeastie
I need to hide from programs that it runs in VM. How to edit DMI strings Bochs?

[Qemu-devel] [Bug 1022331] Re: -cpu ? causes confusion when directory has 1-character length filenames

2012-08-26 Thread Aurelien Jarno
** Changed in: qemu Status: Invalid = Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1022331 Title: -cpu ? causes confusion when directory has 1-character length filenames

[Qemu-devel] [PATCH for-1.2] tcg/arm: Fix broken CONFIG_TCG_PASS_AREG0 code

2012-08-26 Thread Peter Maydell
The CONFIG_TCG_PASS_AREG0 code for calling ld/st helpers was broken in that it did not respect the ABI requirement that 64 bit values were passed in even-odd register pairs. The simplest way to fix this is to implement some new utility functions for marshalling function arguments into the correct

[Qemu-devel] [PATCH for-1.2] target-ppc: fix altivec instructions

2012-08-26 Thread Aurelien Jarno
Altivec instructions are not working anymore in PowerPC emulation, following commit d15f74fb, which inverted two registers in the call to helper. Fix that. Cc: Blue Swirl blauwir...@gmail.com Cc: Alexander Graf ag...@suse.de Cc: Andreas Färber afaer...@suse.de Signed-off-by: Aurelien Jarno

Re: [Qemu-devel] [PATCH] qdev: unplug request will propagate and release item bottom-up

2012-08-26 Thread Paolo Bonzini
Il 25/08/2012 09:26, Liu Ping Fan ha scritto: From: Liu Ping Fan pingf...@linux.vnet.ibm.com To achieve uplug a sub tree, we propagate unplug event on the tree. Signed-off-by: Liu Ping Fan pingf...@linux.vnet.ibm.com You're improvising. You need a clear plan of what you're setting to do,

Re: [Qemu-devel] [PATCH for-1.2] target-ppc: fix altivec instructions

2012-08-26 Thread Peter Maydell
On 26 August 2012 15:14, Aurelien Jarno aurel...@aurel32.net wrote: Altivec instructions are not working anymore in PowerPC emulation, following commit d15f74fb, which inverted two registers in the call to helper. Fix that. Cc: Blue Swirl blauwir...@gmail.com Cc: Alexander Graf ag...@suse.de

Re: [Qemu-devel] [PATCH for-1.2] target-ppc: fix altivec instructions

2012-08-26 Thread Andreas Färber
Am 26.08.2012 16:14, schrieb Aurelien Jarno: Altivec instructions are not working anymore in PowerPC emulation, following commit d15f74fb, which inverted two registers in the call to helper. Fix that. Cc: Blue Swirl blauwir...@gmail.com Cc: Alexander Graf ag...@suse.de Cc: Andreas Färber

[Qemu-devel] [PATCH for-1.2 0/2] migrate PV EOI MSR

2012-08-26 Thread Michael S. Tsirkin
It turns out PV EOI gets disabled after migration - until next guest reset. This is because we are missing code to actually migrate it. This patch fixes it up: it does not do anything useful without kvm irqchip but applies cleanly to qemu.git as well as qemu-kvm.git, so I think it's cleaner to

[Qemu-devel] [PATCH for-1.2 1/2] linux-headers: update asm/kvm_para.h to 3.6

2012-08-26 Thread Michael S. Tsirkin
Update asm-x96/kvm_para.h to version present in Linux 3.6. This is needed for the new PV EOI feature. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- linux-headers/asm-x86/kvm_para.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/linux-headers/asm-x86/kvm_para.h

[Qemu-devel] [PATCH for-1.2 2/2] kvm: get/set PV EOI MSR

2012-08-26 Thread Michael S. Tsirkin
Support get/set of new PV EOI MSR, for migration. Add an optional section for MSR value - send it out in case MSR was changed from the default value (0). Signed-off-by: Michael S. Tsirkin m...@redhat.com --- target-i386/cpu.h | 1 + target-i386/kvm.c | 13 +

Re: [Qemu-devel] [Qemu-ppc] [PATCH v9 1/1] Add USB option in machine options

2012-08-26 Thread Blue Swirl
On Sat, Aug 25, 2012 at 2:27 PM, Alexander Graf ag...@suse.de wrote: On 25.08.2012, at 00:43, Blue Swirl blauwir...@gmail.com wrote: On Wed, Aug 22, 2012 at 10:31 AM, Li Zhang zhlci...@gmail.com wrote: When -usb option is used, global varible usb_enabled is set. And all the plafrom will

Re: [Qemu-devel] Get host virtual address corresponding to guest physical address?

2012-08-26 Thread Blue Swirl
On Sat, Aug 25, 2012 at 1:17 PM, 陳韋任 (Wei-Ren Chen) che...@iis.sinica.edu.tw wrote: On Sat, Aug 25, 2012 at 11:56:13AM +0100, Peter Maydell wrote: On 24 August 2012 04:14, 陳韋任 (Wei-Ren Chen) che...@iis.sinica.edu.tw wrote: I would like to know if there is a function in QEMU which converts

Re: [Qemu-devel] [PATCH for-1.2] target-ppc: fix altivec instructions

2012-08-26 Thread Blue Swirl
On Sun, Aug 26, 2012 at 2:14 PM, Aurelien Jarno aurel...@aurel32.net wrote: Altivec instructions are not working anymore in PowerPC emulation, following commit d15f74fb, which inverted two registers in the call to helper. Fix that. Cc: Blue Swirl blauwir...@gmail.com Acked-by: Blue Swirl

Re: [Qemu-devel] [PATCH for-1.2] tcg/arm: Fix broken CONFIG_TCG_PASS_AREG0 code

2012-08-26 Thread Blue Swirl
Thanks, applied. On Sun, Aug 26, 2012 at 1:40 PM, Peter Maydell peter.mayd...@linaro.org wrote: The CONFIG_TCG_PASS_AREG0 code for calling ld/st helpers was broken in that it did not respect the ABI requirement that 64 bit values were passed in even-odd register pairs. The simplest way to fix

Re: [Qemu-devel] [PATCH for-1.2] target-ppc: fix altivec instructions

2012-08-26 Thread Peter Maydell
On 26 August 2012 18:56, Blue Swirl blauwir...@gmail.com wrote: On Sun, Aug 26, 2012 at 2:14 PM, Aurelien Jarno aurel...@aurel32.net wrote: Altivec instructions are not working anymore in PowerPC emulation, following commit d15f74fb, which inverted two registers in the call to helper. Fix

[Qemu-devel] [PATCH] target-sparc: remove useless line in Makefile.objs

2012-08-26 Thread Aurelien Jarno
op_helper.c has been removed in commit 0184e266. Remove the corresponding flags from Makefile.objs. Cc: Blue Swirl blauwir...@gmail.com Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- target-sparc/Makefile.objs |2 -- 1 file changed, 2 deletions(-) diff --git

[Qemu-devel] [PATCH] hw/pl110: Fix spelling of 'palette'

2012-08-26 Thread Peter Maydell
Fix the spelling of 'palette' used in various local variables and structure members. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- hw/pl110.c | 28 ++-- hw/pl110_template.h | 22 +++--- 2 files changed, 25 insertions(+), 25

[Qemu-devel] [RFC PATCH 0/9] qom: improve reference counting and hotplug

2012-08-26 Thread Anthony Liguori
Right now, you need to pair up object_new with object_delete. This is impractical when using reference counting because we would like to ensure that object_unref() also frees memory when needed. The first few patches fix this problem by introducing a release callback so that objects that need

[Qemu-devel] [PATCH 8/9] qdev: make qdev_set_parent_bus() just set a link property

2012-08-26 Thread Anthony Liguori
Also make setting the link to NULL break the bus link Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- hw/qdev.c | 48 ++-- 1 files changed, 42 insertions(+), 6 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index 86e1337..525a0cb 100644 ---

[Qemu-devel] [PATCH 9/9] hotplug: refactor hotplug to leverage new QOM functions

2012-08-26 Thread Anthony Liguori
1) DeviceState::unplug requests for an eject to happen - the default implementation is a forced eject 2) A bus can eject a device by setting the parent_bus to NULL - this detaches the device from the bus - this does *not* cause the device to disappear 3) The current implementation on

[Qemu-devel] [PATCH 5/9] object: add support for nullable child properties

2012-08-26 Thread Anthony Liguori
A nullable child can be detached from its parent by setting the property to NULL. This provides a mechanism for a management tool to delete certain types of objects. Signed-off-by: Anthony Liguori aligu...@us.ibm.com object: link: release reference on finalize, externalize getter/setter

[Qemu-devel] [PATCH 6/9] qdev: make devices created with device_add nullable so they can be deleted

2012-08-26 Thread Anthony Liguori
A management tool can destroy these devices by writing an empty string into the child link property. Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- hw/qdev-monitor.c | 15 ++- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/hw/qdev-monitor.c

[Qemu-devel] [PATCH 4/9] object: remove object_finalize

2012-08-26 Thread Anthony Liguori
Callers should just use object_unref Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- hw/qdev.c |4 include/qemu/object.h |9 - qom/object.c |2 +- 3 files changed, 1 insertions(+), 14 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index

[Qemu-devel] [PATCH 1/9] savevm: don't rely on paths if we can store a DeviceState object

2012-08-26 Thread Anthony Liguori
Paths break during tear down which can result in odd behavior since we do path based lookup during unregister (which happens at tear down). For devices, just store the DeviceState directly and use that. Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- savevm.c |5 - 1 files

[Qemu-devel] [PATCH 2/9] object: automatically free objects based on a release function

2012-08-26 Thread Anthony Liguori
Now object_delete() simply has the semantics of unref'ing an object and unparenting it. Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- include/qemu/object.h |5 + qom/object.c | 16 +++- 2 files changed, 20 insertions(+), 1 deletions(-) diff --git

[Qemu-devel] [PATCH 7/9] qdev: add notifier for when the device loses its parent bus (eject)

2012-08-26 Thread Anthony Liguori
Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- hw/qdev.c |2 ++ hw/qdev.h |3 +++ 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index fdee91f..86e1337 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -672,6 +672,8 @@ static void device_initfn(Object

Re: [Qemu-devel] [Qemu-ppc] [PATCH v9 1/1] Add USB option in machine options

2012-08-26 Thread Alexander Graf
On 26.08.2012, at 10:34, Blue Swirl blauwir...@gmail.com wrote: On Sat, Aug 25, 2012 at 2:27 PM, Alexander Graf ag...@suse.de wrote: On 25.08.2012, at 00:43, Blue Swirl blauwir...@gmail.com wrote: On Wed, Aug 22, 2012 at 10:31 AM, Li Zhang zhlci...@gmail.com wrote: When -usb option is

Re: [Qemu-devel] [PATCH v2] register reset handler to write image into memory

2012-08-26 Thread Yin Olivia-R63875
Thanks to Dunrong and Andreas. $ scripts/get_maintainer.pl -f hw/loader.c Alexander Graf ag...@suse.de (commit_signer:3/6=50%) Anthony Liguori aligu...@us.ibm.com (commit_signer:2/6=33%) Stefan Weil w...@mail.berlios.de (commit_signer:1/6=17%) Benjamin Herrenschmidt b...@kernel.crashing.org

Re: [Qemu-devel] [PATCH] hw/pl110: Fix spelling of 'palette'

2012-08-26 Thread Stefan Weil
Am 26.08.2012 23:30, schrieb Peter Maydell: Fix the spelling of 'palette' used in various local variables and structure members. ... and in a comment. See below. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- hw/pl110.c | 28 ++--

Re: [Qemu-devel] [PATCH 1/4] qxl: create a qxl common struct!

2012-08-26 Thread Gerd Hoffmann
On 08/24/12 21:14, Erlon Cruz wrote: From: Fabiano Fidêncio fabi...@fidencio.org This commit is creating a QXLDevice struct, entirely based on PCIQXLDevice struct, but separating parts that will be shared between PCIQXLDevice and VirtIOQXLDevice. All functions were changed to support the