]> xenbits.xensource.com Git - xen.git/commit
x86/vmx: Defer vmx_vmcs_exit() as long as possible in construct_vmcs()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 28 May 2018 14:02:34 +0000 (15:02 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 28 Jun 2018 10:31:26 +0000 (11:31 +0100)
commitf30e3cf34042846e391e3f8361fc6a76d181a7ee
tree55c131f81b058fabd4daf60a5cf3a98234db96da
parente29acab49b97bdcbae74592831994430ab861170
x86/vmx: Defer vmx_vmcs_exit() as long as possible in construct_vmcs()

paging_update_paging_modes() and vmx_vlapic_msr_changed() both operate on the
VMCS being constructed.  Avoid dropping and re-acquiring the reference
multiple times.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/vmcs.c