kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fw: [PATCH 0/11] KVM: nVMX: shadow VMCS support, v1
@ 2013-04-07 11:25 Abel Gordon
  2013-04-07 11:27 ` Gleb Natapov
  0 siblings, 1 reply; 2+ messages in thread
From: Abel Gordon @ 2013-04-07 11:25 UTC (permalink / raw)
  To: Gleb Natapov; +Cc: kvm, owasserm, nadav, jun.nakajima, dongxiao.xu



Hi Gleb,

Do you have any comments/issues related to the  shadow vmcs patches I sent
almost a month ago  ?
If you don't have any objection let me know and I'll test+submit a re-based
version so you can apply it.

Thanks,
Abel.

----- Forwarded by Abel Gordon/Haifa/IBM on 07/04/2013 02:15 PM -----

Abel Gordon/Haifa/IBM@IBMIL wrote on 10/03/2013 06:03:25 PM:

> From: Abel Gordon/Haifa/IBM@IBMIL
> To: kvm@vger.kernel.org,
> Cc: owasserm@redhat.com, nadav@harel.org.il, jun.nakajima@intel.com,
> dongxiao.xu@intel.com, Abel Gordon/Haifa/IBM@IBMIL
> Date: 10/03/2013 06:03 PM
> Subject: [PATCH 0/11] KVM: nVMX: shadow VMCS support, v1
>
> This series of patches implements shadow-vmcs capability for nested VMX.
>
> Shadow-vmcs - background and overview:
>
>  In Intel VMX, vmread and vmwrite privileged instructions are used by the
>  hypervisor to read and modify the guest and host specifications (VMCS).
In a
>  nested virtualization environment, L1 executes multiple vmread and
vmwrite
>  instruction to handle a single L2 exit. Each vmread and vmwrite
> executed by L1
>  traps (cause an exit) to the L0 hypervisor (KVM). L0 emulates the
instruction
>  behaviour and resumes L1 execution.
>
>  Removing the need to trap and emulate these special instructions reduces
the
>  number of exits and improves nested virtualization performance. As
> it was first
>  evaluated in [1], exit-less vmread and vmwrite can reduce nested
> virtualization
>  overhead up-to 40%.
>
>  Intel introduced a new feature to their processors called shadow-vmcs.
Using
>  shadow-vmcs, L0 can configure the processor to let L1 running in
guest-mode
>  access VMCS12 fields using vmread and vmwrite instructions but
> without causing
>  an exit to L0. The VMCS12 fields' data is stored in a shadow-vmcs
controlled
>  by L0.
>
> Shadow-vmcs - design considerations:
>
>  A shadow-vmcs is processor-dependent and must be accessed by L0 or L1
using
>  vmread and vmwrite instructions. With nested virtualization we aim
> to abstract
>  the hardware from the L1 hypervisor. Thus, to avoid hardware
dependencies we
>  prefered to keep the software defined VMCS12 format as part of L1
> address space
>  and hold the processor-specific shadow-vmcs format only in L0 address
space.
>  In other words, the shadow-vmcs is used by L0 as an accelerator butthe
format
>  and content is never exposed to L1 directly. L0 syncs the content of the
>  processor-specific shadow vmcs with the content of the
software-controlled
>  VMCS12 format.
>
>  We could have been kept the processor-specific shadow-vmcs format
> in L1 address
>  space to avoid using the software defined VMCS12 format, however,
> this type of
>  design/implementation would have been created hardware dependencies and
>  would complicate other capabilities (e.g. Live Migration of L1).
>
> Acknowledgments:
>
>  Many thanks to
>  "Xu, Dongxiao" <dongxiao.xu@intel.com>
>  "Nakajima, Jun" <jun.nakajima@intel.com>
>  "Har'El, Nadav" <nadav@harel.org.il>
>
>  for the insightful discussions, comments and reviews.
>
>
>  These patches were easily created and maintained using
>      Patchouli -- patch creator
>      http://patchouli.sourceforge.net/
>
>
> [1] "The Turtles Project: Design and Implementation of Nested
Virtualization",
>     http://www.usenix.org/events/osdi10/tech/full_papers/Ben-Yehuda.pdf


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

* Re: Fw: [PATCH 0/11] KVM: nVMX: shadow VMCS support, v1
  2013-04-07 11:25 Fw: [PATCH 0/11] KVM: nVMX: shadow VMCS support, v1 Abel Gordon
@ 2013-04-07 11:27 ` Gleb Natapov
  0 siblings, 0 replies; 2+ messages in thread
From: Gleb Natapov @ 2013-04-07 11:27 UTC (permalink / raw)
  To: Abel Gordon; +Cc: kvm, owasserm, nadav, jun.nakajima, dongxiao.xu

On Sun, Apr 07, 2013 at 02:25:06PM +0300, Abel Gordon wrote:
> 
> 
> Hi Gleb,
> 
> Do you have any comments/issues related to the  shadow vmcs patches I sent
> almost a month ago  ?
> If you don't have any objection let me know and I'll test+submit a re-based
> version so you can apply it.
> 
Sorry, haven't reviewed it yet, but plan too. The month had a lot of
holidays as you know :)

--
			Gleb.

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

end of thread, other threads:[~2013-04-07 11:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-07 11:25 Fw: [PATCH 0/11] KVM: nVMX: shadow VMCS support, v1 Abel Gordon
2013-04-07 11:27 ` Gleb Natapov

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).