Changeset 13830 in vbox for trunk/src/VBox/VMM/PATM
- Timestamp:
- Nov 5, 2008 1:49:18 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 38821
- Location:
- trunk/src/VBox/VMM/PATM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PATM/PATM.cpp
r13827 r13830 346 346 347 347 /* Needed for future patching of sldt/sgdt/sidt/str etc. */ 348 rc = CPUMR3QueryGuestCtx GCPtr(pVM, &pVM->patm.s.pCPUMCtxGC);348 rc = CPUMR3QueryGuestCtxRCPtr(pVM, &pVM->patm.s.pCPUMCtxGC); 349 349 AssertRCReturn(rc, rc); 350 350 -
trunk/src/VBox/VMM/PATM/PATMPatch.cpp
r13822 r13830 236 236 case PATM_CPUID_STD_PTR: 237 237 /* @todo dirty hack when correcting this fixup (state restore) */ 238 dest = CPUMGetGuestCpuIdStd GCPtr(pVM);238 dest = CPUMGetGuestCpuIdStdRCPtr(pVM); 239 239 break; 240 240 241 241 case PATM_CPUID_EXT_PTR: 242 242 /* @todo dirty hack when correcting this fixup (state restore) */ 243 dest = CPUMGetGuestCpuIdExt GCPtr(pVM);243 dest = CPUMGetGuestCpuIdExtRCPtr(pVM); 244 244 break; 245 245 246 246 case PATM_CPUID_CENTAUR_PTR: 247 247 /* @todo dirty hack when correcting this fixup (state restore) */ 248 dest = CPUMGetGuestCpuIdCentaur GCPtr(pVM);248 dest = CPUMGetGuestCpuIdCentaurRCPtr(pVM); 249 249 break; 250 250 251 251 case PATM_CPUID_DEF_PTR: 252 252 /* @todo dirty hack when correcting this fixup (state restore) */ 253 dest = CPUMGetGuestCpuIdDef GCPtr(pVM);253 dest = CPUMGetGuestCpuIdDefRCPtr(pVM); 254 254 break; 255 255 … … 287 287 case PATM_VM_FORCEDACTIONS: 288 288 /* @todo dirty assumptions when correcting this fixup during saved state loading. */ 289 dest = pVM->pVM GC + RT_OFFSETOF(VM, fForcedActions);289 dest = pVM->pVMRC + RT_OFFSETOF(VM, fForcedActions); 290 290 break; 291 291 -
trunk/src/VBox/VMM/PATM/PATMSSM.cpp
r13822 r13830 870 870 else 871 871 /* Note: rather assumptive! */ 872 if ( *pFixup >= pVM->pVM GC873 && *pFixup < pVM->pVM GC + 32)874 { 875 LogFlow(("Changing fForcedActions fixup from %x to %x\n", *pFixup, pVM->pVM GC + RT_OFFSETOF(VM, fForcedActions)));876 *pFixup = pVM->pVM GC + RT_OFFSETOF(VM, fForcedActions);872 if ( *pFixup >= pVM->pVMRC 873 && *pFixup < pVM->pVMRC + 32) 874 { 875 LogFlow(("Changing fForcedActions fixup from %x to %x\n", *pFixup, pVM->pVMRC + RT_OFFSETOF(VM, fForcedActions))); 876 *pFixup = pVM->pVMRC + RT_OFFSETOF(VM, fForcedActions); 877 877 } 878 878 else 879 if ( *pFixup >= pVM->pVM GC880 && *pFixup < pVM->pVM GC + 8192)879 if ( *pFixup >= pVM->pVMRC 880 && *pFixup < pVM->pVMRC + 8192) 881 881 { 882 882 static int cCpuidFixup = 0; … … 888 888 { 889 889 case 0: 890 *pFixup = CPUMGetGuestCpuIdDef GCPtr(pVM);890 *pFixup = CPUMGetGuestCpuIdDefRCPtr(pVM); 891 891 break; 892 892 case 1: 893 *pFixup = CPUMGetGuestCpuIdStd GCPtr(pVM);893 *pFixup = CPUMGetGuestCpuIdStdRCPtr(pVM); 894 894 break; 895 895 case 2: 896 *pFixup = CPUMGetGuestCpuIdExt GCPtr(pVM);896 *pFixup = CPUMGetGuestCpuIdExtRCPtr(pVM); 897 897 break; 898 898 case 3: 899 *pFixup = CPUMGetGuestCpuIdCentaur GCPtr(pVM);899 *pFixup = CPUMGetGuestCpuIdCentaurRCPtr(pVM); 900 900 break; 901 901 }
Note:
See TracChangeset
for help on using the changeset viewer.