[Qemu-devel] [PATCH] Extend qemu-ga's 'guest-info' command to expose flag 'success-response'

2013-09-21 Thread Mark Wu
Now we have several qemu-ga commands not returning response on success. It has been documented in qga/qapi-schema.json already. This patch exposes the 'success-response' flag by extending 'guest-info' command. With this change, the clients can handle the command response more flexibly. Changes:

Re: [Qemu-devel] [PATCH V4 0/3] qemu-iotests: add test for fd passing via SCM rights

2013-09-21 Thread Wenchao Xia
On 09/20/2013 11:11 PM, Stefan Hajnoczi wrote: On Mon, Sep 09, 2013 at 01:57:20PM +0200, Stefan Hajnoczi wrote: On Fri, Sep 06, 2013 at 11:24:31AM +0800, Wenchao Xia wrote: tests/qemu-iotests/socket_scm_helper.c | 135 After a clean QEMU build ./check -raw fa

Re: [Qemu-devel] [PATCH] target-i386: Enable x2apic by default on more recent CPU models

2013-09-21 Thread Gleb Natapov
On Fri, Sep 20, 2013 at 04:15:17PM -0300, Eduardo Habkost wrote: > This enables x2apic on the following CPU models: Conroe, Penryn, > Nehalem, Westmere, Opteron_G[12345]. > > Normally we try to keep the CPU model definitions as close as the real > CPUs as possible, but x2apic can be emulated by KV

Re: [Qemu-devel] in_asm substitute for accel=kvm:tcg

2013-09-21 Thread Gleb Natapov
On Thu, Sep 19, 2013 at 08:49:51PM +0300, Andriy Gapon wrote: > on 19/09/2013 19:53 Paolo Bonzini said the following: > > Il 19/09/2013 16:36, Andriy Gapon ha scritto: > >> Not sure how the code ends up at 0x9315 after that. > > > > Events are dropped, probably corresponding to more emulation. >

[Qemu-devel] [PATCH v2] block: Fix compiler warning (-Werror=uninitialized)

2013-09-21 Thread Stefan Weil
The patch fixes a warning from gcc (Debian 4.6.3-14+rpi1) 4.6.3: block/stream.c:141:22: error: ‘copy’ may be used uninitialized in this function [-Werror=uninitialized] This is not a real bug - a better compiler would not complain. Now 'copy' has always a defined value, so the check for ret >= 0

[Qemu-devel] [PATCH v2] translate-all: Fix formatting of dump output

2013-09-21 Thread Stefan Weil
The page dump writes a table with 3 abi_ulong values in each row. These values take 8 or 16 characters (depending on sizeof abi_ulong). Fix the table headings to be aligned with the table columns. old: startend size prot 00012000-00012021e000 0021e000 rwx 0040

Re: [Qemu-devel] [PATCH 2/2] vmdk: fix cluster size check for flat extents

2013-09-21 Thread Fam Zheng
On Fri, 09/20 17:04, Paolo Bonzini wrote: > Il 19/09/2013 13:31, Stefan Hajnoczi ha scritto: > >> > We use the extent size as cluster size for flat extents (where no L1/L2 > >> > table is allocated so it's safe). > > Why is the extent size passed as the cluster size parameter? > > I think it's so

[Qemu-devel] [PATCH] pci-ohci: Add missing 'break' in ohci_service_td

2013-09-21 Thread Ján Veselý
Device communication errors need to be reported to driver. Add a debug message while at it. Signed-off-by: Jan Vesely --- hw/usb/hcd-ohci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c index 35f0878..0396e33 100644 --- a/hw/usb/hcd-ohci.c +++ b/hw/u

Re: [Qemu-devel] [PATCH 00/11] virtio: cleanup and fix hot-unplug

2013-09-21 Thread Michael S. Tsirkin
On Fri, Sep 20, 2013 at 04:57:49PM +0200, Paolo Bonzini wrote: > This series fixes hot-unplug of virtio devices, which can crash due to > dangling pointer accesses. Could you please describe the sequence of steps that makes qemu crash? > The current implementation supports guest-initiated hot-unp

Re: [Qemu-devel] [PATCH] Ensure PCIR is aligned to 4 bytes

2013-09-21 Thread Sebastian Herbszt
Brad Smith wrote: > On 19/09/13 12:53 PM, Sebastian Herbszt wrote: > > Brad Smith wrote: > >> On 20/01/13 1:12 PM, David Woodhouse wrote: > >>> The PCI Firmware Specification apparently requires that the PCI > >>> Data Structure be DWORD-aligned. The implementation in OVMF also > >>> requires this,

Re: [Qemu-devel] Hibernate and qemu-nbd

2013-09-21 Thread Wouter Verhelst
On 20-09-13 20:00, Mark Trumpold wrote: > Stefan, > > So, I tried the following: > > -> qemu-nbd -p 2000 /root/qemu/q1.img & > -> nbd-client localhost 2000 /dev/nbd0 & That won't work. nbd-client will only try the reconnect thing if you use the "-persist" option. Also, nbd-client will do a

Re: [Qemu-devel] [PATCH 5/5] hw: arm_gic_kvm: Add KVM VGIC save/restore logic

2013-09-21 Thread Peter Maydell
On 21 September 2013 06:46, Christoffer Dall wrote: > On Sat, Sep 21, 2013 at 06:22:23AM +0900, Peter Maydell wrote: >> *) for getting TCG<->KVM and KVM-with-non-host-CPU cases >> right we need to do translation anyway, or at least think about it. > > Why? Wouldn't we always only support the case

Re: [Qemu-devel] ACPI enabled => qemu process exits when guest shuts down

2013-09-21 Thread Erik Rull
Paolo Bonzini wrote: Il 14/09/2013 11:24, Erik Rull ha scritto: Hi all, I tried a guest OS that is ACPI capable with enabled ACPI in qemu (+kvm) and qemu quits when the guest OS was shut down (and the "guest PC" should be powered off). Well, from the guest point of view, this behavior seems to