Changeset 87634 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Feb 5, 2021 9:52:24 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/TMAllCpu.cpp
r87633 r87634 234 234 235 235 236 #ifdef VBOX_WITH_STATISTICS 236 #ifdef IN_RING0 /* Only used in ring-0 at present (AMD-V and VT-x). */ 237 238 # ifdef VBOX_WITH_STATISTICS 237 239 /** 238 240 * Record why we refused to use offsetted TSC. … … 269 271 } 270 272 } 271 #endif /* VBOX_WITH_STATISTICS */ 272 273 274 #ifdef IN_RING0 /* Only used in ring-0 at present (AMD-V and VT-x). */ 273 # endif /* VBOX_WITH_STATISTICS */ 274 275 275 /** 276 276 * Checks if AMD-V / VT-x can use an offsetted hardware TSC or not. … … 355 355 return false; 356 356 } 357 #endif /* IN_RING0 - at the moment */ 357 358 358 359 359 /** … … 371 371 { 372 372 AssertCompile(TMCLOCK_FREQ_VIRTUAL <= _4G); 373 # ifdef IN_RING3373 # ifdef IN_RING3 374 374 RT_NOREF_PV(pVCpu); 375 375 uint64_t uCpuHz = SUPGetCpuHzFromGip(g_pSUPGlobalInfoPage); 376 # else376 # else 377 377 uint64_t uCpuHz = SUPGetCpuHzFromGipBySetIndex(g_pSUPGlobalInfoPage, pVCpu->iHostCpuSet); 378 # endif378 # endif 379 379 if (RT_UNLIKELY(cNsToDeadline >= TMCLOCK_FREQ_VIRTUAL)) 380 380 return uCpuHz; … … 389 389 390 390 391 #ifdef IN_RING0 /* Only used in ring-0 from VT-x code at the moment. */392 391 /** 393 392 * Gets the next deadline in host CPU clock ticks and the TSC offset if we can … … 466 465 return tmCpuCalcTicksToDeadline(pVCpu, TMVirtualSyncGetNsToDeadline(pVM, puDeadlineVersion, puTscNow)); 467 466 } 467 468 468 #endif /* IN_RING0 - at the moment */ 469 470 469 471 470 /**
Note:
See TracChangeset
for help on using the changeset viewer.