]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: Allocate shadow vmcs
authorAbel Gordon <abelg@il.ibm.com>
Thu, 18 Apr 2013 11:37:25 +0000 (14:37 +0300)
committerGleb Natapov <gleb@redhat.com>
Mon, 22 Apr 2013 07:52:10 +0000 (10:52 +0300)
commit4d16399f7098ba2a228a47e66de128992d907f70
tree0e2afad141c35ca6d1f1a5d65034ce7761c82ddb
parenta97327694a69778bc7a5926c151b2b4856bae0c6
KVM: nVMX: Allocate shadow vmcs

Allocate a shadow vmcs used by the processor to shadow part of the fields
stored in the software defined VMCS12 (let L1 access fields without causing
exits). Note we keep a shadow vmcs only for the current vmcs12.  Once a vmcs12
becomes non-current, its shadow vmcs is released.

Signed-off-by: Abel Gordon <abelg@il.ibm.com>
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kvm/vmx.c