Re: [Xen-devel] [PATCH v1 2/3] x86/vvmx: correct nested shadow VMCS handling

2017-03-14 Thread Tian, Kevin
> From: Sergey Dyasli [mailto:sergey.dya...@citrix.com] > Sent: Monday, March 13, 2017 6:52 PM > > 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 lo

[Xen-devel] [PATCH v1 2/3] x86/vvmx: correct nested shadow VMCS handling

2017-03-13 Thread Sergey Dyasli
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: Ser