]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - arch/x86/kvm/vmx.c
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)
commit8de48833708a7834f1ba65a80944b1045082553a
tree0e2afad141c35ca6d1f1a5d65034ce7761c82ddb
parent145c28dd19a2a05aa798e77bd7e679847fe8bee3
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