Re: [PATCH 0/10] nEPT: Nested EPT support for Nested VMX

2011-11-13 Thread Nadav Har'El
Hi, On Thu, Nov 10, 2011, Avi Kivity wrote about "Re: [PATCH 0/10] nEPT: Nested EPT support for Nested VMX": > This patchset is missing a fairly hairy patch that makes reading L2 > virtual addresses work. This was supposed to be part of the nested TDP code that is already in the code. To read an

Re: [PATCH 02/10] nEPT: MMU context for nested EPT

2011-11-13 Thread Avi Kivity
On 11/12/2011 11:37 PM, Nadav Har'El wrote: > On Sat, Nov 12, 2011, Avi Kivity wrote about "Re: [PATCH 02/10] nEPT: MMU > context for nested EPT": > > host may write-protect a page. Second, the shadow and guest ptes may be > > in different formats (ept vs ia32). > > I'm afraid I've lost you here.

Re: [PATCH 0/10] nEPT: Nested EPT support for Nested VMX

2011-11-13 Thread Avi Kivity
On 11/13/2011 10:52 AM, Nadav Har'El wrote: > Hi, > > On Thu, Nov 10, 2011, Avi Kivity wrote about "Re: [PATCH 0/10] nEPT: Nested > EPT support for Nested VMX": > > This patchset is missing a fairly hairy patch that makes reading L2 > > virtual addresses work. > > This was supposed to be part of t

Re: [RFC] kvm tools: Implement multiple VQ for virtio-net

2011-11-13 Thread Michael S. Tsirkin
On Sat, Nov 12, 2011 at 12:12:01AM +0200, Sasha Levin wrote: > This is a patch based on Krishna Kumar's patch series which implements > multiple VQ support for virtio-net. > > The patch was tested with ver3 of the patch. > > Cc: Krishna Kumar > Cc: Michael S. Tsirkin > Cc: Rusty Russell > Cc:

Re: [PATCH 02/10] nEPT: MMU context for nested EPT

2011-11-13 Thread Orit Wasserman
On 11/12/2011 11:37 PM, Nadav Har'El wrote: > On Sat, Nov 12, 2011, Avi Kivity wrote about "Re: [PATCH 02/10] nEPT: MMU > context for nested EPT": >> host may write-protect a page. Second, the shadow and guest ptes may be >> in different formats (ept vs ia32). > > I'm afraid I've lost you here..

Re: [RFC] [ver3 PATCH 0/6] Implement multiqueue virtio-net

2011-11-13 Thread Michael S. Tsirkin
On Fri, Nov 11, 2011 at 06:32:23PM +0530, Krishna Kumar wrote: > This patch series resurrects the earlier multiple TX/RX queues > functionality for virtio_net, and addresses the issues pointed > out. Some general questions/issues with the approach this patchset takes: 1. Lack of host-guest synchro

Re: [Qemu-devel] INVLPG and IPI emulation in KVM

2011-11-13 Thread Avi Kivity
On 11/13/2011 02:27 PM, Xin Tong wrote: > I am investigating how INVLPG is emulated in kvm. You're on the wrong list. > It turns out that it calls > > kvm_mmu_invlpg >kvm_mmu_flush_tlb > kvm_make_request(KVM_REQ_TLB_FLUSH, vcpu); > > and the kvm_make_request set the vcpu->requests bit t

Invalidate TLB

2011-11-13 Thread Xin Tong
I have 2 questions regard TLB and PageTable in KVM. 1. I do not really get how the TLB gets saved and restored on when the guest os vmexits and vmresumes. Or maybe the TLB is not saved at all ( TLB flushes when vmexit and vmenter happen). 2. Say i have multiple vCPUs and each of them running some

Re: [PATCH RFC] virtio-spec: flexible configuration layout

2011-11-13 Thread Ronen Hod
On 11/09/2011 05:19 PM, Michael S. Tsirkin wrote: On Wed, Nov 09, 2011 at 02:48:58PM +0200, Sasha Levin wrote: On Wed, 2011-11-09 at 14:38 +0200, Avi Kivity wrote: On 11/09/2011 10:46 AM, Sasha Levin wrote: Alternatively we can add new structures with new structure IDs, pointed to from PCI con

Re: Invalidate TLB

2011-11-13 Thread Nadav Har'El
Hi, On Sun, Nov 13, 2011, Xin Tong wrote about "Invalidate TLB": > I have 2 questions regard TLB and PageTable in KVM. > > 1. I do not really get how the TLB gets saved and restored on when the > guest os vmexits and vmresumes. Or maybe the TLB is not saved at all ( > TLB flushes when vmexit and

Re: [PATCH 02/10] nEPT: MMU context for nested EPT

2011-11-13 Thread Avi Kivity
On 11/13/2011 01:30 PM, Orit Wasserman wrote: > Maybe this patch can help, this is roughly what Avi wants (I hope) done very > quickly. > I'm sorry I don't have setup to run nested VMX at the moment so i can't test > it. > > Orit > > diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c > index 93

Re: [RFC] kvm tools: Implement multiple VQ for virtio-net

2011-11-13 Thread Sasha Levin
On Sun, 2011-11-13 at 12:24 +0200, Michael S. Tsirkin wrote: > On Sat, Nov 12, 2011 at 12:12:01AM +0200, Sasha Levin wrote: > > This is a patch based on Krishna Kumar's patch series which implements > > multiple VQ support for virtio-net. > > > > The patch was tested with ver3 of the patch. > > >

Re: [PATCHv2 RFC] virtio-spec: flexible configuration layout

2011-11-13 Thread Michael S. Tsirkin
On Fri, Nov 11, 2011 at 02:54:31PM +1030, Rusty Russell wrote: > On Wed, 09 Nov 2011 22:57:28 +0200, Sasha Levin > wrote: > > On Wed, 2011-11-09 at 22:52 +0200, Michael S. Tsirkin wrote: > > > On Wed, Nov 09, 2011 at 10:24:47PM +0200, Sasha Levin wrote: > > > > It'll be a bit harder deprecating i

Re: [RFC] kvm tools: Implement multiple VQ for virtio-net

2011-11-13 Thread Sasha Levin
On Sun, 2011-11-13 at 17:00 +0200, Sasha Levin wrote: > On Sun, 2011-11-13 at 12:24 +0200, Michael S. Tsirkin wrote: > > On Sat, Nov 12, 2011 at 12:12:01AM +0200, Sasha Levin wrote: > > > This is a patch based on Krishna Kumar's patch series which implements > > > multiple VQ support for virtio-net

[PATCH RFC] ndo: ndo_queue_xmit/ndo_flush_xmit (was Re: [RFC] [ver3 PATCH 0/6] Implement multiqueue virtio-net)

2011-11-13 Thread Michael S. Tsirkin
On Fri, Nov 11, 2011 at 06:32:23PM +0530, Krishna Kumar wrote: > This patch series resurrects the earlier multiple TX/RX queues > functionality for virtio_net, and addresses the issues pointed > out. I'm guessing the biggest source of contention for transmit is keeping the TX hardware lock across

Re: [PATCH 02/10] nEPT: MMU context for nested EPT

2011-11-13 Thread Orit Wasserman
On 11/13/2011 04:32 PM, Avi Kivity wrote: > On 11/13/2011 01:30 PM, Orit Wasserman wrote: >> Maybe this patch can help, this is roughly what Avi wants (I hope) done very >> quickly. >> I'm sorry I don't have setup to run nested VMX at the moment so i can't test >> it. >> >> Orit >> >> diff --git

Re: [PATCH RFC] virtio-spec: flexible configuration layout

2011-11-13 Thread Vadim Rozenfeld
On Wed, 2011-11-09 at 14:38 +0200, Avi Kivity wrote: > On 11/09/2011 10:46 AM, Sasha Levin wrote: > > > Alternatively we can add new structures with new > > > structure IDs, pointed to from PCI configuration space. > > > > > > As we don't yet have devices or drivers with 64 bit features, > > > I d

Re: [PATCH 5 of 5] virtio: expose added descriptors immediately

2011-11-13 Thread Michael S. Tsirkin
On Thu, Nov 03, 2011 at 06:12:53PM +1030, Rusty Russell wrote: > A virtio driver does virtqueue_add_buf() multiple times before finally > calling virtqueue_kick(); previously we only exposed the added buffers > in the virtqueue_kick() call. This means we don't need a memory > barrier in virtqueue_

Re: [PATCH 5 of 5] virtio: expose added descriptors immediately

2011-11-13 Thread Rusty Russell
On Sun, 13 Nov 2011 23:03:14 +0200, "Michael S. Tsirkin" wrote: > On Thu, Nov 03, 2011 at 06:12:53PM +1030, Rusty Russell wrote: > > A virtio driver does virtqueue_add_buf() multiple times before finally > > calling virtqueue_kick(); previously we only exposed the added buffers > > in the virtque

KVM VMExit

2011-11-13 Thread Xin Tong
I would like to know how I can make a UD2 (Undefined Instruction) cause a vmexit in KVM ? Thanks Xin -- 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: [RFC] kvm tools: Implement multiple VQ for virtio-net

2011-11-13 Thread Asias He
Hi, Shsha On 11/13/2011 11:00 PM, Sasha Levin wrote: On Sun, 2011-11-13 at 12:24 +0200, Michael S. Tsirkin wrote: On Sat, Nov 12, 2011 at 12:12:01AM +0200, Sasha Levin wrote: This is a patch based on Krishna Kumar's patch series which implements multiple VQ support for virtio-net. The patch w

[Qemu-devel] [PATCH] ivshmem: use PIO for BAR0(Doorbell) instead of MMIO to reduce notification time

2011-11-13 Thread zanghongyong
From: Hongyong Zang Ivshmem(nahanni) is a mechanism for sharing host memory with VMs running on the same host. Currently, guest notifies qemu by reading or writing ivshmem device's PCI MMIO BAR0(Doorbell). This patch, changes this PCI MMIO BAR0(Doorbell) to PIO. And we find guest accesses PIO

Re: [PATCH 5 of 5] virtio: expose added descriptors immediately

2011-11-13 Thread Michael S. Tsirkin
On Sun, Nov 13, 2011 at 11:03:13PM +0200, Michael S. Tsirkin wrote: > On Thu, Nov 03, 2011 at 06:12:53PM +1030, Rusty Russell wrote: > > A virtio driver does virtqueue_add_buf() multiple times before finally > > calling virtqueue_kick(); previously we only exposed the added buffers > > in the virtq

Re: [PATCHv2 RFC] virtio-spec: flexible configuration layout

2011-11-13 Thread Michael S. Tsirkin
On Sun, Nov 13, 2011 at 05:14:27PM +0200, Michael S. Tsirkin wrote: > On Fri, Nov 11, 2011 at 02:54:31PM +1030, Rusty Russell wrote: > > On Wed, 09 Nov 2011 22:57:28 +0200, Sasha Levin > > wrote: > > > On Wed, 2011-11-09 at 22:52 +0200, Michael S. Tsirkin wrote: > > > > On Wed, Nov 09, 2011 at 10