VirtualBox

Ignore:
Timestamp:
Aug 20, 2018 6:44:55 AM (6 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: Revert r124436 (VMCLEAR is needed for setting launch state which VMPTRLD doesn't touch).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r73754 r73770  
    27742774        *(uint32_t *)pVCpu->hm.s.vmx.pvVmcs = RT_BF_GET(pVM->hm.s.vmx.Msrs.u64Basic, VMX_BF_BASIC_VMCS_ID);
    27752775
     2776        /* Set the VMCS launch state to "clear", see Intel spec. 31.6 "Preparation and launch a virtual machine". */
     2777        rc  = VMXClearVmcs(pVCpu->hm.s.vmx.HCPhysVmcs);
     2778        AssertLogRelMsgRCReturnStmt(rc, ("VMXR0SetupVM: VMXClearVmcs failed! rc=%Rrc\n", rc),
     2779                                    hmR0VmxUpdateErrorRecord(pVCpu, rc), rc);
     2780
    27762781        /* Load this VMCS as the current VMCS. */
    27772782        rc = VMXActivateVmcs(pVCpu->hm.s.vmx.HCPhysVmcs);
     
    28012806#endif
    28022807
    2803         /* Sync the CPU's internal data into our VMCS memory region & set the launch state to "clear". */
     2808        /* Sync any CPU internal VMCS data back into our VMCS in memory. */
    28042809        rc = VMXClearVmcs(pVCpu->hm.s.vmx.HCPhysVmcs);
    28052810        AssertLogRelMsgRCReturnStmt(rc, ("VMXR0SetupVM: VMXClearVmcs(2) failed! rc=%Rrc\n", rc),
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette