VirtualBox

Changeset 88739 in vbox


Ignore:
Timestamp:
Apr 27, 2021 3:26:07 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144061
Message:

NEM/win: Notify TM around a call to WHvRunVirtualProcessor so that we can distinguish between VMM and guest CPU utilization.

File:
1 edited

Legend:

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

    r88736 r88739  
    43314331                RT_ZERO(ExitReason);
    43324332                LogFlow(("NEM/%u: Entry @ %04X:%08RX64 IF=%d (~~may be stale~~)\n", pVCpu->idCpu, pVCpu->cpum.GstCtx.cs.Sel, pVCpu->cpum.GstCtx.rip, pVCpu->cpum.GstCtx.rflags.Bits.u1IF));
     4333                TMNotifyStartOfExecution(pVM, pVCpu);
    43334334                HRESULT hrc = WHvRunVirtualProcessor(pVM->nem.s.hPartition, pVCpu->idCpu, &ExitReason, sizeof(ExitReason));
    43344335                VMCPU_CMPXCHG_STATE(pVCpu, VMCPUSTATE_STARTED_EXEC_NEM, VMCPUSTATE_STARTED_EXEC_NEM_WAIT);
     4336                TMNotifyEndOfExecution(pVM, pVCpu, ASMReadTSC());
    43354337                LogFlow(("NEM/%u: Exit  @ %04X:%08RX64 IF=%d CR8=%#x \n", pVCpu->idCpu, ExitReason.VpContext.Cs.Selector, ExitReason.VpContext.Rip, RT_BOOL(ExitReason.VpContext.Rflags & X86_EFL_IF), ExitReason.VpContext.Cr8));
    43364338                if (SUCCEEDED(hrc))
Note: See TracChangeset for help on using the changeset viewer.

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