[COMMIT] [viostor] check if msi-x is enabled

2011-05-02 Thread Vadim Rozenfeld
From 9d8ae91934b34d303f43ff3c7613eb75bf519d3b Mon Sep 17 00:00:00 2001 From: Vadim Rozenfeld vroze...@redhat.com Date: Mon, 2 May 2011 14:07:49 +0300 Subject: [COMMIT] [viostor] check if msi-x is enabled --- viostor/virtio_pci.c |2 +- viostor/virtio_stor.c | 63

[COMMIT] [viostor] adjust device queue depth according to virtual queue size when working in indirect mode

2011-05-02 Thread Vadim Rozenfeld
From aa00ad3b28701839f732533f8ac098c8f8d0b065 Mon Sep 17 00:00:00 2001 From: Vadim Rozenfeld vroze...@redhat.com Date: Mon, 2 May 2011 14:52:18 +0300 Subject: [COMMIT] [viostor] adjust device queue depth according to virtual queue size when working in indirect mode --- viostor/virtio_stor.c |

[COMMIT] [viostor] initialize dpc only once

2011-05-02 Thread Vadim Rozenfeld
From 8fe0df57fc8c03d732a7c91a482c93e07a40bb81 Mon Sep 17 00:00:00 2001 From: Vadim Rozenfeld vroze...@redhat.com Date: Mon, 2 May 2011 15:47:45 +0300 Subject: [COMMIT] [viostor] initialize dpc only once --- viostor/virtio_stor.c | 22 -- viostor/virtio_stor.h |1 + 2

[COMMIT] [viostor] add preliminary support for indirect buffers

2011-05-02 Thread Vadim Rozenfeld
From a830a195fd89dc2c15c712141fbc7580589e60cb Mon Sep 17 00:00:00 2001 From: Vadim Rozenfeld vroze...@redhat.com Date: Mon, 2 May 2011 15:57:10 +0300 Subject: [COMMIT] [viostor] add preliminary support for indirect buffers --- viostor/virtio_ring.c | 20 +---

[COMMIT] [viostor] complete flush requests synchronously

2011-05-02 Thread Vadim Rozenfeld
From cf6f4ecb43db044d4f3028af0a23ec574289b285 Mon Sep 17 00:00:00 2001 From: Vadim Rozenfeld vroze...@redhat.com Date: Mon, 2 May 2011 16:03:44 +0300 Subject: [COMMIT] [viostor] complete flush requests synchronously --- viostor/virtio_stor.c |8 +++-

[COMMIT] [balloon] use wdk macro for obtaining PFN associated with MDL

2011-05-02 Thread Vadim Rozenfeld
From b1cf55a481d2cbcd3beb93360dcb7b53a24d743d Mon Sep 17 00:00:00 2001 From: Vadim Rozenfeld vroze...@redhat.com Date: Mon, 2 May 2011 21:13:11 +0300 Subject: [COMMIT] [balloon] use wdk macro for obtaining PFN associated with MDL. --- Balloon/sys/balloon.c |2 +- 1 files changed, 1

[COMMIT] [balloon] check balloon size on device init.

2011-05-02 Thread Vadim Rozenfeld
From 1c114e00b389a1df20addc6fa2cfb736d655f2a8 Mon Sep 17 00:00:00 2001 From: Vadim Rozenfeld vroze...@redhat.com Date: Mon, 2 May 2011 21:29:12 +0300 Subject: [COMMIT] [balloon] check balloon size on device init. --- Balloon/sys/ProtoTypes.h |4 Balloon/sys/balloon.c| 34

[PATCH uq/master 2/4] kvm: use qemu_free consistently

2011-05-02 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- kvm-all.c |4 ++-- target-i386/kvm.c |2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index 1d7e8ea..d0c36cb 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -1167,7 +1167,7 @@ int

Re: update from 0.12.5 to 0.14 goes headless

2011-05-02 Thread Avi Kivity
On 05/01/2011 09:58 PM, Michael Tokarev wrote: This is now stating qemu-kvm in headless mode. it tells me to use VNC 5901 to connect. But when I explicitly disable SDL when compiling, it does this: it allocates next free VNC display. So you may check how you built it. Specifically, if

Re: nmi is broken?

2011-05-02 Thread Avi Kivity
On 05/01/2011 04:45 AM, OGAWA Hirofumi wrote: Hm.., if smp was enabled, what configuration model is used by kvm? I think this configuration model can't work on smp. As far as I can see, kvm is not configured (from MADT and some of behaviors) like you said. We may well have an error

[PATCH v3 4/6] pci-assign: Properly handle more overlapping accesses

2011-05-02 Thread Jan Kiszka
On 2011-04-29 22:41, Alex Williamson wrote: On Fri, 2011-04-29 at 11:05 +0200, Jan Kiszka wrote: Ensure that accesses exceeding PCI_CAPABILITY_LIST and PCI_INTERRUPT_LINE+PIN hit the real device in areas we do not virtualize. Again, we do not optimize these checks and accesses a lot, they are

Re: [PATCH V3 2/8] Add a new zerocopy device flag

2011-05-02 Thread Michael S. Tsirkin
On Wed, Apr 20, 2011 at 12:44:08PM -0700, Shirley Ma wrote: This zerocopy flag is used to support device DMA userspace buffers. Signed-off-by: Shirley Ma x...@us.ibm.com --- include/linux/netdevice.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git

Re: [PATCH V3 3/8] Add userspace buffers support in skb

2011-05-02 Thread Michael S. Tsirkin
On Wed, Apr 20, 2011 at 12:47:57PM -0700, Shirley Ma wrote: This patch adds userspace buffers support in skb. A new struct skb_ubuf_info is needed to maintain the userspace buffers argument and index, a callback is used to notify userspace to release the buffers once lower device has done DMA

Re: [PATCH 1/2] rcu: export rcu_note_context_switch() function

2011-05-02 Thread Gleb Natapov
On Sat, Apr 30, 2011 at 05:59:28AM -0700, Paul E. McKenney wrote: On Fri, Apr 29, 2011 at 09:02:39PM +0300, Gleb Natapov wrote: On Fri, Apr 29, 2011 at 01:39:04AM -0700, Paul E. McKenney wrote: On Fri, Apr 29, 2011 at 01:36:18AM -0700, Paul E. McKenney wrote: On Thu, Apr 28, 2011 at

[PATCH] virtio-spec: 64 bit features, used/avail event

2011-05-02 Thread Michael S. Tsirkin
I'm working on a patchset that modified the notificatin hand-off in virtio to be basically like Xen: each side published an index, the other side only triggers an event when it crosses that index value (Xen event indexes start at 1, ours start at 0 for backward-compatiblity, but that's minor).

Re: [PATCH 1/2] rcu: export rcu_note_context_switch() function

2011-05-02 Thread Paul E. McKenney
On Mon, May 02, 2011 at 01:56:12PM +0300, Gleb Natapov wrote: On Sat, Apr 30, 2011 at 05:59:28AM -0700, Paul E. McKenney wrote: On Fri, Apr 29, 2011 at 09:02:39PM +0300, Gleb Natapov wrote: On Fri, Apr 29, 2011 at 01:39:04AM -0700, Paul E. McKenney wrote: On Fri, Apr 29, 2011 at

Re: [PATCH v3 4/6] pci-assign: Properly handle more overlapping accesses

2011-05-02 Thread Alex Williamson
On Mon, 2011-05-02 at 12:29 +0200, Jan Kiszka wrote: On 2011-04-29 22:41, Alex Williamson wrote: On Fri, 2011-04-29 at 11:05 +0200, Jan Kiszka wrote: Ensure that accesses exceeding PCI_CAPABILITY_LIST and PCI_INTERRUPT_LINE+PIN hit the real device in areas we do not virtualize. Again, we

Re: [PATCH 1/2] rcu: export rcu_note_context_switch() function

2011-05-02 Thread Gleb Natapov
On Mon, May 02, 2011 at 06:36:08AM -0700, Paul E. McKenney wrote: On Mon, May 02, 2011 at 01:56:12PM +0300, Gleb Natapov wrote: On Sat, Apr 30, 2011 at 05:59:28AM -0700, Paul E. McKenney wrote: On Fri, Apr 29, 2011 at 09:02:39PM +0300, Gleb Natapov wrote: On Fri, Apr 29, 2011 at

Re: [PATCH v2 0/6] qemu-kvm: pci-assign: Some more cleanups

2011-05-02 Thread Alex Williamson
On Fri, 2011-04-29 at 11:05 +0200, Jan Kiszka wrote: This round addresses the review comments and also add another fix to ensure that non-virtualized config areas always hit the real device. Jan Kiszka (6): pci-assign: Clean up assigned_dev_pci_read/write_config pci-assign: Move

Re: nmi is broken?

2011-05-02 Thread OGAWA Hirofumi
Avi Kivity a...@redhat.com writes: On 05/01/2011 04:45 AM, OGAWA Hirofumi wrote: Hm.., if smp was enabled, what configuration model is used by kvm? I think this configuration model can't work on smp. As far as I can see, kvm is not configured (from MADT and some of behaviors) like you

Re: Livebackup feature for qemu/qemu-kvm

2011-05-02 Thread Jes Sorensen
On 05/02/11 00:23, Jagane Sundar wrote: Having a live backup feature for kvm will make it a better solution for IaaS clouds compared to xen. I would like to solicit feedback from all of you folks involved in the block subsystem of qemu. Stefan mentioned that Jes is the person most intimately

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

2011-05-02 Thread Avi Kivity
On 05/02/2011 04:17 PM, Michael S. Tsirkin wrote: I'm working on a patchset that modified the notificatin hand-off in virtio to be basically like Xen: each side published an index, the other side only triggers an event when it crosses that index value (Xen event indexes start at 1, ours start at

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

2011-05-02 Thread Michael S. Tsirkin
On Mon, May 02, 2011 at 05:44:36PM +0300, Avi Kivity wrote: On 05/02/2011 04:17 PM, Michael S. Tsirkin wrote: I'm working on a patchset that modified the notificatin hand-off in virtio to be basically like Xen: each side published an index, the other side only triggers an event when it

[PATCH] virt.virt_utils: Fix hardcoded test URL in run_tests()

2011-05-02 Thread Lucas Meneghel Rodrigues
Now that we aim to have different implementations of virtualization tests, the utility function run_tests() can't have the 'kvm' url hardcoded in the function. Rather, it needs to pick up 'vm_type' from the test params. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com ---

[PATCH 4/9] kvm: create kvmclock when one of the flags are present

2011-05-02 Thread Marcelo Tosatti
From: Glauber Costa glom...@redhat.com kvmclock presence can be signalled by two different flags. So for device creation, we have to test for both. Signed-off-by: Glauber Costa glom...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com --- hw/kvmclock.c |6 +- 1 files changed, 5

[PATCH 2/9] x86: Allow multiple cpu feature matches of lookup_feature

2011-05-02 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com kvmclock is represented by two feature bits. Therefore, lookup_feature needs to continue its search even after the first match. Enhance it accordingly and switch to a bool return type at this chance. Signed-off-by: Jan Kiszka jan.kis...@siemens.com

[PATCH 0/9] [PULL] qemu-kvm.git uq/master queue

2011-05-02 Thread Marcelo Tosatti
The following changes since commit cd18f05e248bb916028021634058da06a4657e26: Don't zero out buffer in sched_getaffinity (2011-05-02 10:00:01 +0300) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/master Glauber Costa (3): kvm: use

[PATCH 1/9] kvm: use kernel-provided para_features instead of statically coming up with new capabilities

2011-05-02 Thread Marcelo Tosatti
From: Glauber Costa glom...@redhat.com Use the features provided by KVM_GET_SUPPORTED_CPUID directly to mask out features from guest-visible cpuid. The old get_para_features() mechanism is kept for older kernels that do not implement it. Signed-off-by: Glauber Costa glom...@redhat.com

[PATCH 3/9] kvm: add kvmclock to its second bit

2011-05-02 Thread Marcelo Tosatti
From: Glauber Costa glom...@redhat.com We have two bits that can represent kvmclock in cpuid. They signal the guest which msr set to use. When we tweak flags involving this value - specially when we use -, we have to act on both. Signed-off-by: Glauber Costa glom...@redhat.com Signed-off-by: Avi

[PATCH 5/9] Break up user and system cpu_interrupt implementations

2011-05-02 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com Both have only two lines in common, and we will convert the system service into a callback which is of no use for user mode operation. Signed-off-by: Jan Kiszka jan.kis...@siemens.com CC: Riku Voipio riku.voi...@iki.fi Signed-off-by: Marcelo Tosatti

[PATCH 9/9] kvm: use qemu_free consistently

2011-05-02 Thread Marcelo Tosatti
From: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Marcelo Tosatti mtosa...@redhat.com --- kvm-all.c |4 ++-- target-i386/kvm.c |2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index

[PATCH 7/9] kvm: Install specialized interrupt handler

2011-05-02 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com KVM only requires to set the raised IRQ in CPUState and to kick the receiving vcpu if it is remote. Installing a specialized handler allows potential future changes to the TCG code path without risking KVM side effects. Signed-off-by: Jan Kiszka

[PATCH 8/9] fix crash in migration, 32-bit userspace on 64-bit host

2011-05-02 Thread Marcelo Tosatti
From: Michael Tokarev m...@tls.msk.ru This change fixes a long-standing immediate crash (memory corruption and abort in glibc malloc code) in migration on 32bits. The bug is present since this commit: commit 692d9aca97b865b0f7903565274a52606910f129 Author: Bruce Rogers brog...@novell.com

[PATCH 6/9] Redirect cpu_interrupt to callback handler

2011-05-02 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com This allows to override the interrupt handling of QEMU in system mode. KVM will make use of it to set a specialized handler. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Marcelo Tosatti mtosa...@redhat.com --- cpu-all.h | 14

Re: [PATCH V3 6/8] macvtap/vhost TX zero copy support

2011-05-02 Thread Shirley Ma
Resubmit the patch with a bug being found by liyonghel...@foxmail.com, when he tested 2.6.38.2 kernel. When the virtio_net doesn't enable GSO, vnet hdr_len is 0, we can't use vnet hdr_len to allocate linear skb in zerocopy. Signed-off-by: Shirley Ma x...@us.ibm.com --- drivers/net/macvtap.c |

Re: [PATCH V3 2/8] Add a new zerocopy device flag

2011-05-02 Thread Shirley Ma
On Mon, 2011-05-02 at 13:42 +0300, Michael S. Tsirkin wrote: This comment should specify what exactly is the promise the device makes by setting this flag. Specifically, the condition is that no skb fragments are used after the uinfo callback has been called. The way it's implemented, it

Re: [PATCH 0/9] [PULL] qemu-kvm.git uq/master queue

2011-05-02 Thread Anthony Liguori
On 05/02/2011 01:32 PM, Marcelo Tosatti wrote: The following changes since commit cd18f05e248bb916028021634058da06a4657e26: Don't zero out buffer in sched_getaffinity (2011-05-02 10:00:01 +0300) Applied. Thanks. Regards, Anthony Liguori are available in the git repository at:

Re: performance of virtual functions compared to virtio

2011-05-02 Thread David Ahern
On 04/25/11 13:07, David Ahern wrote: same host, host-VM: A-C, using VF 488 1085 (seen as high as 1280's) A-C, virtio150 4282 We know virtio has a shorter path for this test. No complaints about the throughput numbers; the latency is the problem.

Re: [PATCH V3 2/8] Add a new zerocopy device flag

2011-05-02 Thread Michael S. Tsirkin
On Mon, May 02, 2011 at 11:47:08AM -0700, Shirley Ma wrote: On Mon, 2011-05-02 at 13:42 +0300, Michael S. Tsirkin wrote: This comment should specify what exactly is the promise the device makes by setting this flag. Specifically, the condition is that no skb fragments are used after the

Re: Livebackup feature for qemu/qemu-kvm

2011-05-02 Thread Jagane Sundar
On 5/2/2011 7:36 AM, Jes Sorensen wrote: On 05/02/11 00:23, Jagane Sundar wrote: Having a live backup feature for kvm will make it a better solution for IaaS clouds compared to xen. I would like to solicit feedback from all of you folks involved in the block subsystem of qemu. Stefan mentioned