Changeset 93654 in vbox for trunk/src/VBox
- Timestamp:
- Feb 8, 2022 12:26:36 PM (3 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/TMR0.cpp
r93554 r93654 51 51 pGVM->tmr0.s.aTimerQueues[idxQueue].hMapObj = NIL_RTR0MEMOBJ; 52 52 } 53 54 pGVM->tm.s.VirtualGetRawDataR0.pu64Prev = &pGVM->tm.s.u64VirtualRawPrev; 55 pGVM->tm.s.VirtualGetRawDataR0.pfnBad = tmVirtualNanoTSBad; 56 pGVM->tm.s.VirtualGetRawDataR0.pfnBadCpuIndex = tmVirtualNanoTSBadCpuIndex; 57 pGVM->tm.s.VirtualGetRawDataR0.pfnRediscover = tmVirtualNanoTSRediscover; 58 pGVM->tm.s.pfnVirtualGetRawR0 = tmVirtualNanoTSRediscover; 53 59 } 54 60 -
trunk/src/VBox/VMM/VMMR3/TM.cpp
r93554 r93654 292 292 pVM->tm.s.VirtualGetRawDataR3.pfnBadCpuIndex = tmVirtualNanoTSBadCpuIndex; 293 293 pVM->tm.s.VirtualGetRawDataR3.pu64Prev = &pVM->tm.s.u64VirtualRawPrev; 294 if (!SUPR3IsDriverless())295 {296 pVM->tm.s.VirtualGetRawDataR0.pu64Prev = MMHyperR3ToR0(pVM, (void *)&pVM->tm.s.u64VirtualRawPrev);297 AssertRelease(pVM->tm.s.VirtualGetRawDataR0.pu64Prev);298 }299 /* The rest is done in TMR3InitFinalize() since it's too early to call PDM. */300 294 301 295 /* … … 1072 1066 int rc; 1073 1067 1074 /*1075 * Resolve symbols, unless we're in driverless mode.1076 */1077 if (!SUPR3IsDriverless())1078 {1079 rc = PDMR3LdrGetSymbolR0(pVM, NULL, "tmVirtualNanoTSBad", &pVM->tm.s.VirtualGetRawDataR0.pfnBad);1080 AssertRCReturn(rc, rc);1081 rc = PDMR3LdrGetSymbolR0(pVM, NULL, "tmVirtualNanoTSBadCpuIndex", &pVM->tm.s.VirtualGetRawDataR0.pfnBadCpuIndex);1082 AssertRCReturn(rc, rc);1083 rc = PDMR3LdrGetSymbolR0(pVM, NULL, "tmVirtualNanoTSRediscover", &pVM->tm.s.VirtualGetRawDataR0.pfnRediscover);1084 AssertRCReturn(rc, rc);1085 pVM->tm.s.pfnVirtualGetRawR0 = pVM->tm.s.VirtualGetRawDataR0.pfnRediscover;1086 }1087 1088 1068 #ifndef VBOX_WITHOUT_NS_ACCOUNTING 1089 1069 /*
Note:
See TracChangeset
for help on using the changeset viewer.