LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH v3 0/6] KVM: nVMX: Enable nested apicv support.
@ 2015-01-24 10:18 Wincy Van
  2015-01-27 22:06 ` Paolo Bonzini
  0 siblings, 1 reply; 3+ messages in thread
From: Wincy Van @ 2015-01-24 10:18 UTC (permalink / raw)
  To: Paolo Bonzini, gleb, Zhang, Yang Z
  Cc: kvm, linux-kernel, Wanpeng Li, Jan Kiszka, 范文一

v1 ---> v2:
  Use spin lock to ensure vmcs12 is safe when doing nested
  posted interrupt delivery.

v2 ---> v3:
  1. Add a new field in nested_vmx to avoid the spin lock in v2.
  2. Drop send eoi to L1 when doing nested interrupt delivery.
  3. Use hardware MSR bitmap to enable nested virtualize x2apic
     mode.

Wincy Van (6):
  KVM: nVMX: Use hardware MSR bitmap
  KVM: nVMX: Enable nested virtualize x2apic mode.
  KVM: nVMX: Make nested control MSRs per-cpu.
  KVM: nVMX: Enable nested apic register virtualization.
  KVM: nVMX: Enable nested virtual interrupt delivery.
  KVM: nVMX: Enable nested posted interrupt processing.

 arch/x86/kvm/vmx.c |  570 +++++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 470 insertions(+), 100 deletions(-)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v3 0/6] KVM: nVMX: Enable nested apicv support.
  2015-01-24 10:18 [PATCH v3 0/6] KVM: nVMX: Enable nested apicv support Wincy Van
@ 2015-01-27 22:06 ` Paolo Bonzini
  2015-01-28  6:37   ` Wincy Van
  0 siblings, 1 reply; 3+ messages in thread
From: Paolo Bonzini @ 2015-01-27 22:06 UTC (permalink / raw)
  To: Wincy Van, gleb, Zhang, Yang Z; +Cc: kvm, linux-kernel, Wanpeng Li, Jan Kiszka



On 24/01/2015 11:18, Wincy Van wrote:
> v2 ---> v3:
>   1. Add a new field in nested_vmx to avoid the spin lock in v2.
>   2. Drop send eoi to L1 when doing nested interrupt delivery.
>   3. Use hardware MSR bitmap to enable nested virtualize x2apic
>      mode.

I think the patches are mostly okay.  I made a few comments.

One of the things to do on top could be to avoid rebuilding the whole
vmcs02 on every entry.  Recomputing the MSR bitmap on every vmentry is
not particularly nice, for example.  It is not necessary unless the
execution controls have changed.

Paolo

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v3 0/6] KVM: nVMX: Enable nested apicv support.
  2015-01-27 22:06 ` Paolo Bonzini
@ 2015-01-28  6:37   ` Wincy Van
  0 siblings, 0 replies; 3+ messages in thread
From: Wincy Van @ 2015-01-28  6:37 UTC (permalink / raw)
  To: Paolo Bonzini
  Cc: gleb, Zhang, Yang Z, kvm, linux-kernel, Wanpeng Li, Jan Kiszka

On Wed, Jan 28, 2015 at 6:06 AM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>
>
> On 24/01/2015 11:18, Wincy Van wrote:
>> v2 ---> v3:
>>   1. Add a new field in nested_vmx to avoid the spin lock in v2.
>>   2. Drop send eoi to L1 when doing nested interrupt delivery.
>>   3. Use hardware MSR bitmap to enable nested virtualize x2apic
>>      mode.
>
> I think the patches are mostly okay.  I made a few comments.
>

Thank you, Paolo and Yang. I can't accomplish this without your help.

> One of the things to do on top could be to avoid rebuilding the whole
> vmcs02 on every entry.  Recomputing the MSR bitmap on every vmentry is
> not particularly nice, for example.  It is not necessary unless the
> execution controls have changed.

Indeed, I was planned to do that optimization after this patch set.


Thanks,
Wincy

>
> Paolo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-01-28  6:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-24 10:18 [PATCH v3 0/6] KVM: nVMX: Enable nested apicv support Wincy Van
2015-01-27 22:06 ` Paolo Bonzini
2015-01-28  6:37   ` Wincy Van

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).