KVM: nVMX: Enable and disable shadow vmcs functionality
authorAbel Gordon <abelg@il.ibm.com>
Thu, 18 Apr 2013 11:39:55 +0000 (14:39 +0300)
committerGleb Natapov <gleb@redhat.com>
Mon, 22 Apr 2013 07:52:55 +0000 (10:52 +0300)
commit8a1b9dd0006bce5cc770fd80bc95f9916670c151
treef0faef1346c67ca8d156912613082fd1938aec50
parent012f83cb2f8d7b9b7ad3b65e7e53a9365a357014
KVM: nVMX: Enable and disable shadow vmcs functionality

Once L1 loads VMCS12 we enable shadow-vmcs capability and copy all the VMCS12
shadowed fields to the shadow vmcs.  When we release the VMCS12, we also
disable shadow-vmcs capability.

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