Changeset 42394 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- Jul 25, 2012 2:12:48 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r42390 r42394 1384 1384 rc = VMXWriteVMCS(VMX_VMCS_CTRL_EXIT_MSR_LOAD_COUNT, idxMsr); 1385 1385 AssertRC(rc); 1386 1387 pVCpu->hwaccm.s.vmx.cCachedMSRs = idxMsr;1388 1386 #endif /* VBOX_WITH_AUTO_MSR_LOAD_RESTORE */ 1389 1387 … … 2120 2118 /* 2121 2119 * Store all guest MSRs in the VM-entry load area, so they will be loaded 2122 * during the world switch.2120 * during VM-entry and restored into the VM-exit store area during VM-exit. 2123 2121 */ 2124 2122 PVMXMSR pMsr = (PVMXMSR)pVCpu->hwaccm.s.vmx.pGuestMSR; … … 2177 2175 } 2178 2176 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); 2177 pVCpu->hwaccm.s.vmx.cCachedMSRs = idxMsr; 2184 2178 2185 2179 rc = VMXWriteVMCS(VMX_VMCS_CTRL_ENTRY_MSR_LOAD_COUNT, idxMsr);
Note:
See TracChangeset
for help on using the changeset viewer.