Changeset 26081 in vbox for trunk/src/VBox/VMM/PATM
- Timestamp:
- Jan 28, 2010 9:25:26 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57026
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PATM/PATMSSM.cpp
r25272 r26081 1149 1149 } 1150 1150 else 1151 /* Boldly ASSUMES: 1152 * 1. That pCPUMCtxGC is in the VM structure and that its location is 1153 * at the first page of the same 4 MB chunk. 1154 * 2. That the forced actions were in the first 32 bytes of the VM 1155 * structure. 1156 * 3. That the CPUM leafs are less than 8KB into the structure. */ 1151 1157 if ( ulSSMVersion <= PATM_SSM_VERSION_FIXUP_HACK 1152 && *pFixup >= pVM->pVMRC 1153 && *pFixup < pVM->pVMRC + 32) 1154 { 1155 LogFlow(("Changing fLocalForcedActions fixup from %x to %x\n", *pFixup, pVM->pVMRC + RT_OFFSETOF(VM, aCpus[0].fLocalForcedActions))); 1158 && *pFixup - (patmInfo.pCPUMCtxGC & UINT32_C(0xffc00000)) < UINT32_C(32)) 1159 { 1160 LogFlow(("Changing fLocalForcedActions fixup from %RRv to %RRv\n", *pFixup, pVM->pVMRC + RT_OFFSETOF(VM, aCpus[0].fLocalForcedActions))); 1156 1161 *pFixup = pVM->pVMRC + RT_OFFSETOF(VM, aCpus[0].fLocalForcedActions); 1157 1162 } 1158 1163 else 1159 1164 if ( ulSSMVersion <= PATM_SSM_VERSION_FIXUP_HACK 1160 && *pFixup >= pVM->pVMRC 1161 && *pFixup < pVM->pVMRC + 8192) 1165 && *pFixup - (patmInfo.pCPUMCtxGC & UINT32_C(0xffc00000)) < UINT32_C(8192)) 1162 1166 { 1163 1167 static int cCpuidFixup = 0; … … 1181 1185 break; 1182 1186 } 1183 LogFlow(("Changing cpuid fixup %d from % x to %x\n", cCpuidFixup, oldFixup, *pFixup));1187 LogFlow(("Changing cpuid fixup %d from %RRv to %RRv\n", cCpuidFixup, oldFixup, *pFixup)); 1184 1188 cCpuidFixup++; 1185 1189 }
Note:
See TracChangeset
for help on using the changeset viewer.