- Timestamp:
- Jul 25, 2012 12:13:22 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r42373 r42390 1384 1384 rc = VMXWriteVMCS(VMX_VMCS_CTRL_EXIT_MSR_LOAD_COUNT, idxMsr); 1385 1385 AssertRC(rc); 1386 1387 pVCpu->hwaccm.s.vmx.cCachedMSRs = idxMsr; 1386 1388 #endif /* VBOX_WITH_AUTO_MSR_LOAD_RESTORE */ 1387 1389 … … 2118 2120 /* 2119 2121 * 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. 2121 2123 */ 2122 2124 PVMXMSR pMsr = (PVMXMSR)pVCpu->hwaccm.s.vmx.pGuestMSR; … … 2175 2177 } 2176 2178 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); 2178 2184 2179 2185 rc = VMXWriteVMCS(VMX_VMCS_CTRL_ENTRY_MSR_LOAD_COUNT, idxMsr);
Note:
See TracChangeset
for help on using the changeset viewer.