Re: [PATCH][uq/master] kvmclock: Fix feature detection

2011-08-04 Thread Jan Kiszka
On 2011-07-04 20:37, Marcelo Tosatti wrote: On Thu, Jun 23, 2011 at 10:23:10AM +0200, Jan Kiszka wrote: From: Jan Kiszka jan.kis...@siemens.com Bit-wise or the feature flags and drop the obsolete #ifdef. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/kvmclock.c |7 ++- 1

[PATCH] KVM Test: Call postprocess_vm before postprocess_image.

2011-08-04 Thread fyang
From: Feng Yang fy...@redhat.com Current we call postprocess_image befor postprocess_vm. If exception is thrown in postprocess_image, postprocess_vm will be skipped. So vm could not be killed, it may fail following case in same loop. Signed-off-by: Feng Yang fy...@redhat.com ---

[PATCH] KVM Test: Remove duplicated _close_sock function calls in kvm_monitor.py

2011-08-04 Thread fyang
From: Feng Yang fy...@redhat.com self._close_sock will be called two times in HumanMonitor.__init__ and QMPMonitor.__init__ in exception. Signed-off-by: Feng Yang fy...@redhat.com --- client/virt/kvm_monitor.py |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git

[PATCH] KVM Test: Drop sre module in script and use re module.

2011-08-04 Thread fyang
From: Feng Yang fy...@redhat.com sre moudle have been deprecated in python 2.6 Signed-off-by: Feng Yang fy...@redhat.com --- client/virt/virt_test_setup.py |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/virt/virt_test_setup.py b/client/virt/virt_test_setup.py

Re: [PATCHv3] virtio-spec: 64 bit features, used/avail event, fixes

2011-08-04 Thread Gerd Hoffmann
Hi, Hmm, wait, we could go 32 bit, then we are not limited to 32 bridges anymore, right? Does our bios support that? How you want go to 32bit? io space (not mmio) is fixed at 16bit in x86, isn't it? cheers, Gerd -- To unsubscribe from this list: send the line unsubscribe kvm in the

Re: [PATCH] cpu hotplug issue

2011-08-04 Thread Gleb Natapov
On Wed, Aug 03, 2011 at 06:25:07PM +0200, Vasilis Liaskovitis wrote: On Wed, Aug 03, 2011 at 12:42:11PM +0200, Jan Kiszka wrote: Why can't Seabios read to true number online CPUs from the PIIX4 device? The information is there already, no need for addition PV here. Where is it in

Re: [RFC PATCH 0/3] Avoid soft lockup message when KVM is stopped by host

2011-08-04 Thread Dor Laor
On 08/03/2011 05:24 PM, Eric B Munson wrote: This set is just a rough first pass at avoiding soft lockup warnings when a host pauses the execution of a guest. A flag is set by the host in the shared page used for the pvclock when the host goes to stop the guest. When the guest resumes and

Re: [PATCH] cpu hotplug issue

2011-08-04 Thread Jan Kiszka
On 2011-08-04 10:01, Gleb Natapov wrote: On Wed, Aug 03, 2011 at 06:25:07PM +0200, Vasilis Liaskovitis wrote: On Wed, Aug 03, 2011 at 12:42:11PM +0200, Jan Kiszka wrote: Why can't Seabios read to true number online CPUs from the PIIX4 device? The information is there already, no need for

Re: [PATCH] KVM: MMU: Do not unconditionally read PDPTE from guest memory

2011-08-04 Thread Roedel, Joerg
On Tue, Aug 02, 2011 at 08:34:32AM -0400, Avi Kivity wrote: On 08/02/2011 12:31 PM, Roedel, Joerg wrote: On Sun, Jul 31, 2011 at 04:08:44AM -0400, Avi Kivity wrote: On 07/29/2011 02:31 PM, Roedel, Joerg wrote: On Thu, Jul 28, 2011 at 04:36:17AM -0400, Avi Kivity wrote:

Re: kvm PCI assignment VFIO ramblings

2011-08-04 Thread Joerg Roedel
Hi Ben, thanks for your detailed introduction to the requirements for POWER. Its good to know that the granularity problem is not x86-only. On Sat, Jul 30, 2011 at 09:58:53AM +1000, Benjamin Herrenschmidt wrote: In IBM POWER land, we call this a partitionable endpoint (the term endpoint here

Re: kvm PCI assignment VFIO ramblings

2011-08-04 Thread Joerg Roedel
On Sat, Jul 30, 2011 at 12:20:08PM -0600, Alex Williamson wrote: On Sat, 2011-07-30 at 09:58 +1000, Benjamin Herrenschmidt wrote: - The -minimum- granularity of pass-through is not always a single device and not always under SW control But IMHO, we need to preserve the granularity of

Re: kvm PCI assignment VFIO ramblings

2011-08-04 Thread Joerg Roedel
On Mon, Aug 01, 2011 at 02:27:36PM -0600, Alex Williamson wrote: It's not clear to me how we could skip it. With VT-d, we'd have to implement an emulated interrupt remapper and hope that the guest picks unused indexes in the host interrupt remapping table before it could do anything useful

[PATCH v3 00/39] Memory API, batch 2: PCI devices

2011-08-04 Thread Avi Kivity
This is a mostly mindless conversion of all QEMU PCI devices to the memory API. After this patchset is applied, it is no longer possible to create a PCI device using the old API. An immediate benefit is that PCI BARs that overlap each other are now handled correctly: currently, the sequence

[PATCH v3 02/39] pci: add API to get a BAR's mapped address

2011-08-04 Thread Avi Kivity
This is a hack, for devices that have a back-channel to read this address back outside the normal configuration mechanisms, such as VMware svga. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/pci.c |5 + hw/pci.h |1 + 2 files

[PATCH v3 01/39] virtio-pci: get config on init

2011-08-04 Thread Avi Kivity
From: Michael S. Tsirkin m...@redhat.com We originally did get config on map, so that following write accesses are done on an updated config. New memory API doesn't give us a callback on map, and arguably, devices don't know when cpu really can access there. So updating on init seems cleaner.

[PATCH v3 03/39] vmsvga: don't remember pci BAR address in callback any more

2011-08-04 Thread Avi Kivity
We're going to remove the callback, so we can't use it to save the address. Use the pci API instead. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/vmware_vga.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git

[PATCH v3 04/39] vga: convert vga and its derivatives to the memory API

2011-08-04 Thread Avi Kivity
Convert all vga memory to the memory API. Note we need to fall back to get_system_memory(), since the various buses don't pass the vga window as a memory region. We no longer need to sync the dirty bitmap of the cirrus mapped memory banks, since the memory API takes care of that for us. [jan:

[PATCH v3 06/39] cirrus: simplify bitblt BAR access functions

2011-08-04 Thread Avi Kivity
Make use of the memory API's ability to satisfy multi-byte accesses via multiple single-byte accesses. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/cirrus_vga.c | 81 +-- 1 files changed, 13

[PATCH v3 08/39] vga: simplify vga window mmio access functions

2011-08-04 Thread Avi Kivity
Make use of the memory API's ability to satisfy multi-byte accesses via multiple single-byte accesses. We have to keep vga_mem_{read,write}b() since they're used by cirrus. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/cirrus_vga.c |4 +-

[PATCH v3 10/39] Integrate I/O memory regions into qemu

2011-08-04 Thread Avi Kivity
get_system_io() returns the root I/O memory region. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- exec-memory.h |2 ++ exec.c| 10 ++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/exec-memory.h

[PATCH v3 12/39] pci: allow I/O BARs to be registered with pci_register_bar_region()

2011-08-04 Thread Avi Kivity
Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/pci.c | 43 +++ hw/pci.h |1 + hw/pci_internals.h |3 ++- 3 files changed, 26 insertions(+), 21 deletions(-) diff --git

[PATCH v3 05/39] cirrus: simplify mmio BAR access functions

2011-08-04 Thread Avi Kivity
Make use of the memory API's ability to satisfy multi-byte accesses via multiple single-byte accesses. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/cirrus_vga.c | 78 +- 1 files changed, 8

[PATCH v3 07/39] cirrus: simplify vga window mmio access functions

2011-08-04 Thread Avi Kivity
Make use of the memory API's ability to satisfy multi-byte accesses via multiple single-byte accesses. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/cirrus_vga.c | 79 +++--- 1 files changed, 11

[PATCH v3 22/39] intel-hda: convert to memory API

2011-08-04 Thread Avi Kivity
Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/intel-hda.c | 35 +++ 1 files changed, 19 insertions(+), 16 deletions(-) diff --git a/hw/intel-hda.c b/hw/intel-hda.c index 5a2bc3a..1e4c71e 100644 ---

[PATCH v3 15/39] e1000: convert to memory API

2011-08-04 Thread Avi Kivity
Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/e1000.c | 114 +-- 1 files changed, 48 insertions(+), 66 deletions(-) diff --git a/hw/e1000.c b/hw/e1000.c index 96d84f9..dfc082b 100644 ---

[PATCH v3 11/39] pci: pass I/O address space to new PCI bus

2011-08-04 Thread Avi Kivity
This lets us register BARs in the I/O address space. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/apb_pci.c |1 + hw/bonito.c|1 + hw/grackle_pci.c |8 ++-- hw/gt64xxx.c |4 +++- hw/pc.h|

[PATCH v3 09/39] cirrus: simplify linear framebuffer access functions

2011-08-04 Thread Avi Kivity
Make use of the memory API's ability to satisfy multi-byte accesses via multiple single-byte accesses. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/cirrus_vga.c | 74 ++- 1 files changed, 8

[PATCH v3 21/39] ahci: convert to memory API

2011-08-04 Thread Avi Kivity
Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/ide/ahci.c | 31 +-- hw/ide/ahci.h |2 +- hw/ide/ich.c |3 +-- 3 files changed, 15 insertions(+), 21 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c

[PATCH v3 27/39] i6300esb: convert to memory API

2011-08-04 Thread Avi Kivity
Also add missing destructor. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/wdt_i6300esb.c | 43 +-- 1 files changed, 29 insertions(+), 14 deletions(-) diff --git a/hw/wdt_i6300esb.c b/hw/wdt_i6300esb.c

[PATCH v3 19/39] ivshmem: convert to memory API

2011-08-04 Thread Avi Kivity
excluding msix. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/ivshmem.c | 148 -- 1 files changed, 50 insertions(+), 98 deletions(-) diff --git a/hw/ivshmem.c b/hw/ivshmem.c index

[PATCH v3 29/39] sun4u: convert to memory API

2011-08-04 Thread Avi Kivity
fixes memory leak on repeated BAR map/unmap Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/sun4u.c | 55 +-- 1 files changed, 25 insertions(+), 30 deletions(-) diff --git a/hw/sun4u.c

[PATCH v3 25/39] ne2000: convert to memory API

2011-08-04 Thread Avi Kivity
Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/ne2000-isa.c | 14 +++--- hw/ne2000.c | 77 +- hw/ne2000.h |8 + 3 files changed, 59 insertions(+), 40 deletions(-) diff

[PATCH v3 13/39] rtl8139: convert to memory API

2011-08-04 Thread Avi Kivity
Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/rtl8139.c | 72 ++--- 1 files changed, 38 insertions(+), 34 deletions(-) diff --git a/hw/rtl8139.c b/hw/rtl8139.c index 5214b8c..dfbab90 100644

[PATCH v3 20/39] virtio-pci: convert to memory API

2011-08-04 Thread Avi Kivity
except msix. [jan: fix build] Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/virtio-pci.c | 71 +++--- hw/virtio-pci.h |2 +- 2 files changed, 31 insertions(+), 42 deletions(-) diff --git

[PATCH v3 16/39] eepro100: convert to memory API

2011-08-04 Thread Avi Kivity
Note: the existing code aliases the flash BAR into the MMIO bar. This is probably a bug. This patch does not correct the problem. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/eepro100.c | 182

[PATCH v3 34/39] pci: remove pci_register_bar_simple()

2011-08-04 Thread Avi Kivity
Reviewed-by: Richard Henderson r...@twiddle.net Superceded by pci_register_bar_region(). --- hw/pci.c | 17 - hw/pci.h |3 --- 2 files changed, 0 insertions(+), 20 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 980840f..6aca1af 100644 --- a/hw/pci.c +++ b/hw/pci.c @@

[PATCH v3 30/39] ehci: convert to memory API

2011-08-04 Thread Avi Kivity
Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/usb-ehci.c | 36 +--- 1 files changed, 9 insertions(+), 27 deletions(-) diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c index 8b0dcc3..025ed1f 100644 --- a/hw/usb-ehci.c

[PATCH v3 37/39] pci: fold BAR mapping function into its caller

2011-08-04 Thread Avi Kivity
There is only one function, so no need for a function pointer. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/pci.c | 25 + hw/pci.h |1 - 2 files changed, 9 insertions(+), 17 deletions(-) diff --git a/hw/pci.c

[PATCH v3 23/39] lsi53c895a: convert to memory API

2011-08-04 Thread Avi Kivity
An optimization that fast-pathed DMA reads from the SCRIPTS memory was removed int the process. Likely it breaks with iommus anyway. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/lsi53c895a.c | 258

[PATCH v3 31/39] uhci: convert to memory API

2011-08-04 Thread Avi Kivity
Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/usb-uhci.c | 42 -- 1 files changed, 28 insertions(+), 14 deletions(-) diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c index da74c57..96a17bd 100644 ---

[PATCH v3 36/39] pci: remove pci_register_bar()

2011-08-04 Thread Avi Kivity
Superceded by pci_register_bar_region(). The implementations are folded together. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/pci.c | 42 +- hw/pci.h |3 --- 2 files changed, 17 insertions(+), 28

[PATCH v3 35/39] pci: convert pci rom to memory API

2011-08-04 Thread Avi Kivity
Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/pci.c | 20 +++- hw/pci.h |3 ++- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 6aca1af..481eb7e 100644 --- a/hw/pci.c +++ b/hw/pci.c

[PATCH v3 26/39] pcnet: convert to memory API

2011-08-04 Thread Avi Kivity
Also related chips. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/lance.c | 31 ++- hw/pcnet-pci.c | 74 +-- hw/pcnet.h |4 ++- 3 files changed, 61

[PATCH v3 17/39] es1370: convert to memory API

2011-08-04 Thread Avi Kivity
Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/es1370.c | 43 +-- 1 files changed, 25 insertions(+), 18 deletions(-) diff --git a/hw/es1370.c b/hw/es1370.c index 1ed62b7..6a01797 100644 --- a/hw/es1370.c

[PATCH v3 14/39] ac97: convert to memory API

2011-08-04 Thread Avi Kivity
fixes BAR sizing as well. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/ac97.c | 88 +++- 1 files changed, 51 insertions(+), 37 deletions(-) diff --git a/hw/ac97.c b/hw/ac97.c index

[PATCH v3 24/39] ppc: convert to memory API

2011-08-04 Thread Avi Kivity
Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/cuda.c |6 ++- hw/escc.c | 42 +-- hw/escc.h |2 +- hw/heathrow_pic.c | 29 -- hw/ide.h |2 +- hw/ide/macio.c

[PATCH v3 39/39] pci: remove support for pre memory API BARs

2011-08-04 Thread Avi Kivity
Not used anymore. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/pci.c | 33 ++--- 1 files changed, 2 insertions(+), 31 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 6ed08ae..e6a3e56 100644 --- a/hw/pci.c +++

[PATCH v3 33/39] msix: convert to memory API

2011-08-04 Thread Avi Kivity
The msix table is defined as a subregion, to allow for a BAR that mixes device specific regions with the msix table. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/ivshmem.c| 11 + hw/msix.c | 64

[PATCH v3 32/39] xen-platform: convert to memory API

2011-08-04 Thread Avi Kivity
Since this device bypasses PCI and registers I/O ports directly with the system bus, it needs further attention. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/xen_platform.c | 84 - 1 files

[PATCH v3 28/39] isa-mmio: concert to memory API

2011-08-04 Thread Avi Kivity
Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/isa.h |2 ++ hw/isa_mmio.c | 30 +++--- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/hw/isa.h b/hw/isa.h index d2b6126..f1f2181 100644 ---

[PATCH v3 38/39] pci: rename pci_register_bar_region() to pci_register_bar()

2011-08-04 Thread Avi Kivity
Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/ac97.c |4 ++-- hw/cirrus_vga.c |5 ++--- hw/e1000.c|5 ++--- hw/eepro100.c |7 +++ hw/es1370.c |2 +- hw/ide/cmd646.c | 14 +-

[PATCH v3 18/39] ide: convert to memory API

2011-08-04 Thread Avi Kivity
Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/ide/cmd646.c | 208 +++ hw/ide/pci.c| 25 --- hw/ide/pci.h| 19 - hw/ide/piix.c | 64 + hw/ide/via.c|

Re: [Qemu-devel] [PATCH v1] qmp/hmp: add block_set_io_throttle and enhance query_block

2011-08-04 Thread Stefan Hajnoczi
On Thu, Aug 4, 2011 at 5:34 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com wrote: @@ -1387,6 +1422,11 @@ void bdrv_set_io_limits(BlockDriverState *bs,  {     memset(bs-io_limits, 0, sizeof(BlockIOLimit));     bs-io_limits = *io_limits; +    if (bdrv_io_limits_enabled(bs)) { +        

[PATCH master+STABLE-0.15] Fix default accelerator when configured with --disable-kvm

2011-08-04 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com The default accelerator is hardcoded to 'kvm'. This is a fine default for qemu-kvm normally, but if the user built with ./configure --disable-kvm, then the resulting binaries will not work by default * vl.c: Default to 'tcg' unless CONFIG_KVM is

Re: unconditional CPUID propagation?

2011-08-04 Thread Marcelo Tosatti
On Wed, Aug 03, 2011 at 11:41:42AM +0200, Andre Przywara wrote: Hi, while looking through the code I found commit f79116867ec80ed5d1d10043a3fd9ac8afd182c1 (upstream QEMU: enable SMEP) which unconditionally propagates the bits from CPUID leaf 0x7 to the guest. Though there is the KVM module

[BUG] Qcow2 corruption on snapshot revert

2011-08-04 Thread Philipp Hahn
Hello, it seems like I have discovered a bug in qemu-0.14.1 which corrupts Qcow2 image files when using internal snapshots. I tied this both on an amd64 host running our Debian bases UCS distribution (using pure qemu-kvm_0.14 and pure qemu-kvm_0.14.1) and also on a pure Debian i386 sid

Re: [BUG] Qcow2 corruption on snapshot revert

2011-08-04 Thread Kevin Wolf
Am 04.08.2011 16:20, schrieb Philipp Hahn: Hello, it seems like I have discovered a bug in qemu-0.14.1 which corrupts Qcow2 image files when using internal snapshots. I tied this both on an amd64 host running our Debian bases UCS distribution (using pure qemu-kvm_0.14 and pure

Re: [Autotest] [PATCH] KVM Test: Call postprocess_vm before postprocess_image.

2011-08-04 Thread Lucas Meneghel Rodrigues
On 08/04/2011 04:18 AM, fy...@redhat.com wrote: From: Feng Yangfy...@redhat.com Current we call postprocess_image befor postprocess_vm. If exception is thrown in postprocess_image, postprocess_vm will be skipped. So vm could not be killed, it may fail following case in same loop. Looks good

Re: [Autotest] [PATCH] KVM Test: Remove duplicated _close_sock function calls in kvm_monitor.py

2011-08-04 Thread Lucas Meneghel Rodrigues
On Thu, Aug 4, 2011 at 4:19 AM, fy...@redhat.com wrote: From: Feng Yang fy...@redhat.com self._close_sock will be called two times in HumanMonitor.__init__ and QMPMonitor.__init__ in exception. Looks good to me, applied, thanks! http://autotest.kernel.org/changeset/5521 Signed-off-by:

Re: [Autotest] [PATCH] KVM Test: Drop sre module in script and use re module.

2011-08-04 Thread Lucas Meneghel Rodrigues
On Thu, Aug 4, 2011 at 4:20 AM, fy...@redhat.com wrote: From: Feng Yang fy...@redhat.com Looks good to me, applied, thanks! http://autotest.kernel.org/changeset/5522 sre moudle have been deprecated in python 2.6 Signed-off-by: Feng Yang fy...@redhat.com ---  

Re: [PATCH] KVM Test: Call postprocess_vm before postprocess_image.

2011-08-04 Thread Amos Kong
On Thu, Aug 04, 2011 at 03:18:30PM +0800, fy...@redhat.com wrote: From: Feng Yang fy...@redhat.com Current we call postprocess_image befor postprocess_vm. If exception is thrown in postprocess_image, postprocess_vm will be skipped. So vm could not be killed, it may fail following case in

Re: [RFC PATCH 0/3] Avoid soft lockup message when KVM is stopped by host

2011-08-04 Thread Marcelo Tosatti
On Wed, Aug 03, 2011 at 10:24:58AM -0400, Eric B Munson wrote: This set is just a rough first pass at avoiding soft lockup warnings when a host pauses the execution of a guest. A flag is set by the host in the shared page used for the pvclock when the host goes to stop the guest. When the

[Bug 40542] New: overflow/panic on KVM hipervizor

2011-08-04 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=40542 Summary: overflow/panic on KVM hipervizor Product: Virtualization Version: unspecified Kernel Version: 3.0.0 Platform: All OS/Version: Linux Tree: Mainline Status:

[Bug 40542] overflow/panic on KVM hipervizor

2011-08-04 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=40542 --- Comment #1 from Slawek Rozbicki sla...@rozbicki.eu 2011-08-04 17:24:03 --- moreover, hardware tests were done. Looks like cpu, hdd and ram aren't faulty. -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ---

[Bug 40542] overflow/panic on KVM hipervizor

2011-08-04 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=40542 --- Comment #2 from Slawek Rozbicki sla...@rozbicki.eu 2011-08-04 17:33:52 --- http port is DNATed by iptables to gentoo guest on tap virtio adapter. -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email --- You are

[Bug 40542] overflow/panic on KVM hipervizor

2011-08-04 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=40542 --- Comment #3 from Slawek Rozbicki sla...@rozbicki.eu 2011-08-04 17:58:18 --- Created an attachment (id=67532) -- (https://bugzilla.kernel.org/attachment.cgi?id=67532) /etc/conf.d/net (network configuration) -- Configure bugmail:

Re: Inter-Domain Communication in KVM

2011-08-04 Thread Boris Dolgov
Hi, On Wed, Aug 3, 2011 at 08:13, Sam zgu...@gmail.com wrote: Dear KVM Gurus:  I am developing a system on KVM with 2 guest OSes: one is a real-time operating system without a TCP/IP stack; the other is Linux. What's the easiest method for inter-domain communication? I am aware of  Nahanni

Re: [RFC PATCH 0/3] Avoid soft lockup message when KVM is stopped by host

2011-08-04 Thread Anthony Liguori
On 08/04/2011 03:37 AM, Dor Laor wrote: On 08/03/2011 05:24 PM, Eric B Munson wrote: This set is just a rough first pass at avoiding soft lockup warnings when a host pauses the execution of a guest. A flag is set by the host in the shared page used for the pvclock when the host goes to stop the

Re: qemu-kvm aborts - vhost_dev_unassign_memory: Assertion `to = 0' failed.

2011-08-04 Thread David Ahern
On 08/03/2011 09:00 AM, Michael S. Tsirkin wrote: On Wed, Aug 03, 2011 at 07:55:47AM -0600, David Ahern wrote: Tested-by: David Ahern daah...@cisco.com David Applied, thanks very much. I assume this will make 0.15 since it is a regression? haven't seen the patch applied to that branch

Re: qemu-kvm aborts - vhost_dev_unassign_memory: Assertion `to = 0' failed.

2011-08-04 Thread Michael S. Tsirkin
On Thu, Aug 04, 2011 at 12:48:49PM -0600, David Ahern wrote: On 08/03/2011 09:00 AM, Michael S. Tsirkin wrote: On Wed, Aug 03, 2011 at 07:55:47AM -0600, David Ahern wrote: Tested-by: David Ahern daah...@cisco.com David Applied, thanks very much. I assume this will make 0.15

Re: qemu-kvm aborts - vhost_dev_unassign_memory: Assertion `to = 0' failed.

2011-08-04 Thread David Ahern
On 08/04/2011 01:17 PM, Michael S. Tsirkin wrote: On Thu, Aug 04, 2011 at 12:48:49PM -0600, David Ahern wrote: On 08/03/2011 09:00 AM, Michael S. Tsirkin wrote: On Wed, Aug 03, 2011 at 07:55:47AM -0600, David Ahern wrote: Tested-by: David Ahern daah...@cisco.com David Applied, thanks

Re: [PATCH master+STABLE-0.15] Fix default accelerator when configured with --disable-kvm

2011-08-04 Thread Marcelo Tosatti
On Thu, Aug 04, 2011 at 03:02:24PM +0100, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com The default accelerator is hardcoded to 'kvm'. This is a fine default for qemu-kvm normally, but if the user built with ./configure --disable-kvm, then the resulting binaries will

Re: [RFC PATCH]vhost-blk: In-kernel accelerator for virtio block device

2011-08-04 Thread Badari Pulavarty
Hi Liu Yuan, I started testing your patches. I applied your kernel patch to 3.0 and applied QEMU to latest git. I passed 6 blockdevices from the host to guest (4 vcpu, 4GB RAM). I ran simple dd read tests from the guest on all block devices (with various blocksizes, iflag=direct).

Re: [Qemu-devel] [PATCH v1] qmp/hmp: add block_set_io_throttle and enhance query_block

2011-08-04 Thread Zhi Yong Wu
On Thu, Aug 4, 2011 at 9:07 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Thu, Aug 4, 2011 at 5:34 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com wrote: @@ -1387,6 +1422,11 @@ void bdrv_set_io_limits(BlockDriverState *bs,  {     memset(bs-io_limits, 0, sizeof(BlockIOLimit));     bs-io_limits =

Re: [Qemu-devel] [PATCH v4 0/3] The intro for QEMU disk I/O limits

2011-08-04 Thread Zhi Yong Wu
On Tue, Aug 2, 2011 at 4:06 AM, Ryan Harper ry...@us.ibm.com wrote: * Zhi Yong Wu wu...@linux.vnet.ibm.com [2011-08-01 01:30]: The main goal of the patch is to effectively cap the disk I/O speed or counts of one single VM.It is only one draft, so it unavoidably has some drawbacks, if you

Re: [Qemu-devel] [PATCH v4 3/3] The support for queue timer and throttling algorithm

2011-08-04 Thread Zhi Yong Wu
On Tue, Aug 2, 2011 at 4:39 AM, Ryan Harper ry...@us.ibm.com wrote: * Zhi Yong Wu wu...@linux.vnet.ibm.com [2011-08-01 01:32]: Note:       1.) When bps/iops limits are specified to a small value such as 511 bytes/s, this VM will hang up. We are considering how to handle this senario.      

Re: [Qemu-devel] [PATCH v4 2/3] The support for block queue

2011-08-04 Thread Zhi Yong Wu
On Tue, Aug 2, 2011 at 4:21 AM, Ryan Harper ry...@us.ibm.com wrote: * Zhi Yong Wu wu...@linux.vnet.ibm.com [2011-08-01 01:30]: +static AIOPool block_queue_pool = { +    .aiocb_size         = sizeof(struct BlockDriverAIOCB), +    .cancel             = qemu_block_queue_cancel, +}; + +static