Changeset 72551 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Jun 13, 2018 6:13:42 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/NEMAllNativeTemplate-win.cpp.h
r72546 r72551 1192 1192 WHV_REGISTER_NAME enmName = WHvX64RegisterTsc; 1193 1193 WHV_REGISTER_VALUE Value = {0, 0}; 1194 aValue.Reg64 = uPausedTscValue;1194 Value.Reg64 = uPausedTscValue; 1195 1195 uint64_t const uFirstTsc = ASMReadTSC(); 1196 1196 HRESULT hrc = WHvSetVirtualProcessorRegisters(pVM->nem.s.hPartition, 0 /*iCpu*/, &enmName, 1, &Value); … … 1206 1206 Assert(enmName == WHvX64RegisterTsc); 1207 1207 const uint64_t offDelta = (ASMReadTSC() - uFirstTsc); 1208 aValue.Reg64 = uPausedTscValue + offDelta;1208 Value.Reg64 = uPausedTscValue + offDelta; 1209 1209 HRESULT hrc = WHvSetVirtualProcessorRegisters(pVM->nem.s.hPartition, iCpu, &enmName, 1, &Value); 1210 1210 AssertLogRelMsgReturn(SUCCEEDED(hrc),
Note:
See TracChangeset
for help on using the changeset viewer.