]> xenbits.xensource.com Git - people/royger/xen.git/commit
x86/vvmx: correct nested shadow VMCS handling
authorSergey Dyasli <sergey.dyasli@citrix.com>
Tue, 14 Mar 2017 11:25:14 +0000 (12:25 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 14 Mar 2017 11:25:14 +0000 (12:25 +0100)
commitdc05c0ceeb8609b6d60f6a117a0192e9160946b8
treec3d0ae31d053813c39d020153043f5d68a0dd06a
parent7ecd11c90a133ab8000ebf7f5309f6aa95f1f7db
x86/vvmx: correct nested shadow VMCS handling

Currently xen always sets the shadow VMCS-indicator bit on nested
vmptrld and always clears it on nested vmclear.  This behavior is
wrong when the guest loads a shadow VMCS: shadow bit will be lost
on nested vmclear.

Fix this by checking if the guest has provided a shadow VMCS.

Signed-off-by: Sergey Dyasli <sergey.dyasli@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/vvmx.c
xen/include/asm-x86/hvm/vmx/vvmx.h