]> xenbits.xensource.com Git - xen.git/commit
Nested VMX: load current_vmcs only when it exists
authorEdmund H White <edmund.h.white@intel.com>
Mon, 12 May 2014 09:59:19 +0000 (11:59 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 12 May 2014 09:59:19 +0000 (11:59 +0200)
commit99c03bc6a1f8c6722926d2db781ece045f9d09ae
treef46701e79d4cab50087c4b7f1d50b20b800e433f
parent9a28170f2da2fff0b26736909b74e93d52351b1f
Nested VMX: load current_vmcs only when it exists

There may not have valid vmcs on current CPU. So only load it when it exists.

This original fixing is from Edmud <edmund.h.white@intel.com>.

Signed-off-by: Edmund H White <edmund.h.white@intel.com>
Signed-off-by: Yang Zhang <yang.z.zhang@Intel.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/vmx/vmcs.c