diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c index 519d01879e..928c4faff1 100644 --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -1270,6 +1270,8 @@ void start_vmx(void) { static int bootstrapped; + vmx_save_host_msrs(); + if ( bootstrapped ) { if ( hvm_enabled && !vmx_cpu_up() ) @@ -1299,8 +1301,6 @@ void start_vmx(void) setup_vmcs_dump(); - vmx_save_host_msrs(); - hvm_enable(&vmx_function_table); if ( cpu_has_vmx_msr_bitmap )