Re: [PATCH RFC dontapply] kvm_para: add mmio word store hypercall

2012-03-26 Thread Michael S. Tsirkin
On Sun, Mar 25, 2012 at 04:25:38PM -0700, H. Peter Anvin wrote: On 03/25/2012 03:05 PM, Michael S. Tsirkin wrote: We face a dilemma: IO mapped addresses are legacy, so, for example, PCI express bridges waste 4K of this space for each link, in effect limiting us to 16 devices using this

Re: kvm io performance after kernel 3.2/3.3

2012-03-26 Thread Stefan Hajnoczi
On Fri, Mar 23, 2012 at 11:43 PM, Michael michael.auckl...@gmail.com wrote: I found after update my kernel from 3.0.25 to 3.2.12 or same with kernel 3.3 Disk performance inside VM reduced by 10x times!!! ( for both kvm 0.12.5 and qemu 1.0.1) It sounds like you are updating the host kernel.

Re: [PATCH RFC dontapply] kvm_para: add mmio word store hypercall

2012-03-26 Thread Avi Kivity
On 03/26/2012 12:05 AM, Michael S. Tsirkin wrote: We face a dilemma: IO mapped addresses are legacy, so, for example, PCI express bridges waste 4K of this space for each link, in effect limiting us to 16 devices using this space. Memory is supposed to replace them, but memory exits are much

console class in kvm

2012-03-26 Thread Michael S. Tsirkin
kvm used to carry this commit: commit 4667e6ec0df770867095d8093562d93c94d96ca2 Author: Avi Kivity a...@redhat.com Date: Thu Feb 12 11:43:17 2009 +0200 Change virtio-console to PCI_CLASS_OTHERS As a PCI_CLASS_DISPLAY_OTHER, it reduces primary display somehow on Windows XP

KVM call agenda for Tuesday 27

2012-03-26 Thread Juan Quintela
Hi Please send in any agenda items you are interested in covering. Cheers, Juan. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [GIT PULL] KVM updates for the 3.4 merge window

2012-03-26 Thread Avi Kivity
On 03/25/2012 10:51 PM, Benjamin Herrenschmidt wrote: On Sun, 2012-03-25 at 12:09 +0200, Avi Kivity wrote: Well I've been doing this ever since I moved to git. The motivation was actually to make things easier for patch authors by allowing them to work against a tree of all applied

Re: [PATCH RFC dontapply] kvm_para: add mmio word store hypercall

2012-03-26 Thread Michael S. Tsirkin
On Mon, Mar 26, 2012 at 11:21:58AM +0200, Avi Kivity wrote: On 03/26/2012 12:05 AM, Michael S. Tsirkin wrote: We face a dilemma: IO mapped addresses are legacy, so, for example, PCI express bridges waste 4K of this space for each link, in effect limiting us to 16 devices using this space.

Re: [PATCH RFC dontapply] kvm_para: add mmio word store hypercall

2012-03-26 Thread Avi Kivity
On 03/26/2012 12:08 PM, Michael S. Tsirkin wrote: + gpa = hc_gpa(vcpu, a1, a2); + if (!write_mmio(vcpu, gpa, 2, a0) run) { What's this run thing? I'm not sure - copied this from another other place in emulation: arch/x86/kvm/x86.c:4953:if

Re: console class in kvm

2012-03-26 Thread Avi Kivity
On 03/26/2012 11:48 AM, Michael S. Tsirkin wrote: kvm used to carry this commit: Used to? Which commit reverts this? commit 4667e6ec0df770867095d8093562d93c94d96ca2 Author: Avi Kivity a...@redhat.com Date: Thu Feb 12 11:43:17 2009 +0200 Change virtio-console to PCI_CLASS_OTHERS

Re: [PATCH RFC dontapply] kvm_para: add mmio word store hypercall

2012-03-26 Thread Gleb Natapov
On Mon, Mar 26, 2012 at 12:08:29PM +0200, Michael S. Tsirkin wrote: On Mon, Mar 26, 2012 at 11:21:58AM +0200, Avi Kivity wrote: On 03/26/2012 12:05 AM, Michael S. Tsirkin wrote: We face a dilemma: IO mapped addresses are legacy, so, for example, PCI express bridges waste 4K of this

Re: console class in kvm

2012-03-26 Thread Michael S. Tsirkin
On Mon, Mar 26, 2012 at 12:18:54PM +0200, Avi Kivity wrote: On 03/26/2012 11:48 AM, Michael S. Tsirkin wrote: kvm used to carry this commit: Used to? Which commit reverts this? A merge from qemu.git I would guess. git log does not seem to show the culprit, I don't know how to find it.

Re: [PATCH RFC dontapply] kvm_para: add mmio word store hypercall

2012-03-26 Thread Michael S. Tsirkin
On Mon, Mar 26, 2012 at 12:29:21PM +0200, Gleb Natapov wrote: + gpa = hc_gpa(vcpu, a1, a2); + if (!write_mmio(vcpu, gpa, 2, a0) run) { What's this run thing? I'm not sure - copied this from another other place in emulation:

Re: [PATCH RFC dontapply] kvm_para: add mmio word store hypercall

2012-03-26 Thread Michael S. Tsirkin
On Mon, Mar 26, 2012 at 12:16:14PM +0200, Avi Kivity wrote: On 03/26/2012 12:08 PM, Michael S. Tsirkin wrote: + gpa = hc_gpa(vcpu, a1, a2); + if (!write_mmio(vcpu, gpa, 2, a0) run) { What's this run thing? I'm not sure - copied this from another

Re: [PATCH RFC dontapply] kvm_para: add mmio word store hypercall

2012-03-26 Thread Avi Kivity
On 03/26/2012 01:30 PM, Michael S. Tsirkin wrote: + run-exit_reason = KVM_EXIT_MMIO; + run-mmio.phys_addr = gpa; + memcpy(run-mmio.data, a0, 2); + run-mmio.len = 2; +

Re: console class in kvm

2012-03-26 Thread Avi Kivity
On 03/26/2012 01:19 PM, Michael S. Tsirkin wrote: On Mon, Mar 26, 2012 at 12:18:54PM +0200, Avi Kivity wrote: On 03/26/2012 11:48 AM, Michael S. Tsirkin wrote: kvm used to carry this commit: Used to? Which commit reverts this? A merge from qemu.git I would guess. git log does not

Re: [PATCH kvm-unit-tests] emulator: test for MMX movq raising #MF if pending x87 exceptions exist

2012-03-26 Thread Stefan Hajnoczi
On Sun, Mar 25, 2012 at 2:52 PM, Avi Kivity a...@redhat.com wrote: Test that a pending #MF is raised correctly if encountered by the emulator (and that the host isn't trashed by an unexpected exception).  The approach here exploits the TLB and so will only work on more modern processors.

[PATCH 1/2] tests.cgroup: Add cpuset.mems test

2012-03-26 Thread Lukas Doktor
This test tests the memory pinning via cpuset.mems cgroup feature. It changes cgroups with different node setting. Signed-off-by: Lukas Doktor ldok...@redhat.com --- client/tests/kvm/tests/cgroup.py | 99 ++ client/virt/subtests.cfg.sample |3 + 2 files

[PATCH 2/2] tests.cgroup: fix memory_move test

2012-03-26 Thread Lukas Doktor
Minor fixes in memory_move test. Signed-off-by: Lukas Doktor ldok...@redhat.com --- client/tests/kvm/tests/cgroup.py |4 +--- client/virt/subtests.cfg.sample |1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/client/tests/kvm/tests/cgroup.py

Re: console class in kvm

2012-03-26 Thread Avi Kivity
On 03/26/2012 03:37 PM, Michael S. Tsirkin wrote: Exactly. qemu-kvm used to set the class to CLASS_OTHER while the current code sets it to PCI_CLASS_COMMUNICATION_OTHER. Do we want support for CLASS_OTHER or is it ok to drop it? Looks like starting with qemu-kvm-0.11, qemu-kvm matches qemu.

Re: console class in kvm

2012-03-26 Thread Michael S. Tsirkin
On Mon, Mar 26, 2012 at 02:29:58PM +0200, Avi Kivity wrote: On 03/26/2012 01:19 PM, Michael S. Tsirkin wrote: On Mon, Mar 26, 2012 at 12:18:54PM +0200, Avi Kivity wrote: On 03/26/2012 11:48 AM, Michael S. Tsirkin wrote: kvm used to carry this commit: Used to? Which commit reverts

Re: [PATCH RFC V6 0/11] Paravirtualized ticketlocks

2012-03-26 Thread Avi Kivity
On 03/21/2012 12:20 PM, Raghavendra K T wrote: From: Jeremy Fitzhardinge jeremy.fitzhardi...@citrix.com Changes since last posting: (Raghavendra K T) [ - Rebased to linux-3.3-rc6. - used function+enum in place of macro (better type checking) - use cmpxchg while resetting zero status for

Re: [GIT PULL] KVM updates for the 3.4 merge window

2012-03-26 Thread Ingo Molnar
* Avi Kivity a...@redhat.com wrote: Say a fix comes in which needs to be mainlined during -rc. So I put it in some other branch, to be sent off to Linus in a few days after maturing a little. Meanwhile developers see an incomplete tree, since that patch is not in it. Once Linus

PCI-Passthrough: VF ends up with no IRQ assigned on the physical machine

2012-03-26 Thread Alexander Lyakas
Greetings everybody, I am running stock ubuntu-natty 2.6.38-8, with KVM 0.14.0 and libvirt 0.8.8. I am using Intel 82599EB dual-port 10Gb NIC with VFs spawned by each one of the PFs. Those VFs are further assigned to KVM instances with PCI-passthrough using libvirt. Each instance receives 4 VFs

Re: performance trouble

2012-03-26 Thread Peter Lieven
On 22.03.2012 10:38, Vadim Rozenfeld wrote: On Thursday, March 22, 2012 10:52:42 AM Peter Lieven wrote: On 22.03.2012 09:48, Vadim Rozenfeld wrote: On Thursday, March 22, 2012 09:53:45 AM Gleb Natapov wrote: On Wed, Mar 21, 2012 at 06:31:02PM +0100, Peter Lieven wrote: On 21.03.2012 12:10,

Re: performance trouble

2012-03-26 Thread Gleb Natapov
On Mon, Mar 26, 2012 at 07:46:03PM +0200, Vadim Rozenfeld wrote: On Monday, March 26, 2012 07:00:32 PM Peter Lieven wrote: On 22.03.2012 10:38, Vadim Rozenfeld wrote: On Thursday, March 22, 2012 10:52:42 AM Peter Lieven wrote: On 22.03.2012 09:48, Vadim Rozenfeld wrote: On Thursday,

Re: performance trouble

2012-03-26 Thread Vadim Rozenfeld
On Monday, March 26, 2012 07:52:49 PM Gleb Natapov wrote: On Mon, Mar 26, 2012 at 07:46:03PM +0200, Vadim Rozenfeld wrote: On Monday, March 26, 2012 07:00:32 PM Peter Lieven wrote: On 22.03.2012 10:38, Vadim Rozenfeld wrote: On Thursday, March 22, 2012 10:52:42 AM Peter Lieven wrote:

Re: performance trouble

2012-03-26 Thread Peter Lieven
On 26.03.2012 20:36, Vadim Rozenfeld wrote: On Monday, March 26, 2012 07:52:49 PM Gleb Natapov wrote: On Mon, Mar 26, 2012 at 07:46:03PM +0200, Vadim Rozenfeld wrote: On Monday, March 26, 2012 07:00:32 PM Peter Lieven wrote: On 22.03.2012 10:38, Vadim Rozenfeld wrote: On Thursday, March 22,

Re: performance trouble

2012-03-26 Thread Vadim Rozenfeld
On Monday, March 26, 2012 07:00:32 PM Peter Lieven wrote: On 22.03.2012 10:38, Vadim Rozenfeld wrote: On Thursday, March 22, 2012 10:52:42 AM Peter Lieven wrote: On 22.03.2012 09:48, Vadim Rozenfeld wrote: On Thursday, March 22, 2012 09:53:45 AM Gleb Natapov wrote: On Wed, Mar 21, 2012 at

Re: performance trouble

2012-03-26 Thread Vadim Rozenfeld
On Monday, March 26, 2012 08:54:50 PM Peter Lieven wrote: On 26.03.2012 20:36, Vadim Rozenfeld wrote: On Monday, March 26, 2012 07:52:49 PM Gleb Natapov wrote: On Mon, Mar 26, 2012 at 07:46:03PM +0200, Vadim Rozenfeld wrote: On Monday, March 26, 2012 07:00:32 PM Peter Lieven wrote: On

Re: Unknown KVM internal error on 3.2.1

2012-03-26 Thread Doug Goldstein
On Wed, Mar 7, 2012 at 8:19 AM, Avi Kivity a...@redhat.com wrote: On 03/07/2012 01:00 PM, Gleb Natapov wrote: KVM internal error. Suberror: 1 emulation failure EAX=8004003b EBX=38d54633 ECX=c0460a7e EDX=8005003b ESI=e49329a8 EDI=f7c98d60 EBP=0286 ESP=f7fecf68 EIP=f91d1778

Re: [net-next PATCH v0 3/5] net: add fdb generic dump routine

2012-03-26 Thread John Fastabend
On 3/25/2012 6:09 AM, Roopa Prabhu wrote: On 3/18/12 11:52 PM, John Fastabend john.r.fastab...@intel.com wrote: This adds a generic dump routine drivers can call. It should be sufficient to handle any bridging model that uses the unicast address list. This should be most SR-IOV

Re: PCI-Passthrough: VF ends up with no IRQ assigned on the physical machine

2012-03-26 Thread Alex Williamson
On Mon, 2012-03-26 at 18:34 +0200, Alexander Lyakas wrote: Greetings everybody, I am running stock ubuntu-natty 2.6.38-8, with KVM 0.14.0 and libvirt Any chance you can try upstream qemu-kvm? Interrupts, including msi-x have been given an overhaul recently. Thanks, Alex 0.8.8. I am using

[PATCH 1/2] block: add the support to drain throttled requests

2012-03-26 Thread zwu . kernel
From: Zhi Yong Wu wu...@linux.vnet.ibm.com Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- block.c | 16 +++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/block.c b/block.c index b88ee90..1fbf4dd 100644 --- a/block.c +++ b/block.c @@ -862,8 +862,22 @@

[PATCH 2/2] block: disable I/O throttling on sync api

2012-03-26 Thread zwu . kernel
From: Zhi Yong Wu wu...@linux.vnet.ibm.com Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- block.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 1fbf4dd..5baf340 100644 --- a/block.c +++ b/block.c @@ -1477,6 +1477,12 @@ static int

Re: [PATCH 1/2] Isolation groups

2012-03-26 Thread David Gibson
On Wed, Mar 21, 2012 at 03:12:58PM -0600, Alex Williamson wrote: On Sat, 2012-03-17 at 15:57 +1100, David Gibson wrote: On Fri, Mar 16, 2012 at 01:31:18PM -0600, Alex Williamson wrote: On Fri, 2012-03-16 at 14:45 +1100, David Gibson wrote: On Thu, Mar 15, 2012 at 02:15:01PM -0600, Alex

[PATCH 1/2] block: add the support to drain throttled requests

2012-03-26 Thread zwu . kernel
From: Zhi Yong Wu wu...@linux.vnet.ibm.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- block.c | 16 +++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/block.c b/block.c index b88ee90..1fbf4dd 100644 ---

[PATCH 2/2] block: disable I/O throttling on sync api

2012-03-26 Thread zwu . kernel
From: Zhi Yong Wu wu...@linux.vnet.ibm.com Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- block.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 1fbf4dd..5baf340 100644 ---