VirtualBox

Changeset 42390 in vbox for trunk/src


Ignore:
Timestamp:
Jul 25, 2012 12:13:22 PM (12 years ago)
Author:
vboxsync
Message:

desperately back out r79422 to test if this makes a recent regression go away

File:
1 edited

Legend:

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

    r42373 r42390  
    13841384        rc = VMXWriteVMCS(VMX_VMCS_CTRL_EXIT_MSR_LOAD_COUNT, idxMsr);
    13851385        AssertRC(rc);
     1386
     1387        pVCpu->hwaccm.s.vmx.cCachedMSRs = idxMsr;
    13861388#endif /* VBOX_WITH_AUTO_MSR_LOAD_RESTORE */
    13871389
     
    21182120    /*
    21192121     * Store all guest MSRs in the VM-entry load area, so they will be loaded
    2120      * during VM-entry and restored into the VM-exit store area during VM-exit.
     2122     * during the world switch.
    21212123     */
    21222124    PVMXMSR pMsr = (PVMXMSR)pVCpu->hwaccm.s.vmx.pGuestMSR;
     
    21752177    }
    21762178
    2177     pVCpu->hwaccm.s.vmx.cCachedMSRs = idxMsr;
     2179    /*
     2180     * The number of host MSRs saved must be identical to the number of guest MSRs loaded.
     2181     * It's not a VT-x requirement but how it's practically used here.
     2182     */
     2183    Assert(pVCpu->hwaccm.s.vmx.cCachedMSRs == idxMsr);
    21782184
    21792185    rc = VMXWriteVMCS(VMX_VMCS_CTRL_ENTRY_MSR_LOAD_COUNT, idxMsr);
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