VirtualBox

Changeset 72551 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Jun 13, 2018 6:13:42 PM (7 years ago)
Author:
vboxsync
Message:

NEM/win,TM: Setting TSC on TM start/restore/resume/etc as best we can. bugref:9044 [build fix]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/NEMAllNativeTemplate-win.cpp.h

    r72546 r72551  
    11921192    WHV_REGISTER_NAME  enmName   = WHvX64RegisterTsc;
    11931193    WHV_REGISTER_VALUE Value     = {0, 0};
    1194     aValue.Reg64 = uPausedTscValue;
     1194    Value.Reg64 = uPausedTscValue;
    11951195    uint64_t const     uFirstTsc = ASMReadTSC();
    11961196    HRESULT hrc = WHvSetVirtualProcessorRegisters(pVM->nem.s.hPartition, 0 /*iCpu*/, &enmName, 1, &Value);
     
    12061206        Assert(enmName == WHvX64RegisterTsc);
    12071207        const uint64_t offDelta = (ASMReadTSC() - uFirstTsc);
    1208         aValue.Reg64 = uPausedTscValue + offDelta;
     1208        Value.Reg64 = uPausedTscValue + offDelta;
    12091209        HRESULT hrc = WHvSetVirtualProcessorRegisters(pVM->nem.s.hPartition, iCpu, &enmName, 1, &Value);
    12101210        AssertLogRelMsgReturn(SUCCEEDED(hrc),
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette