VirtualBox

Changeset 46595 in vbox


Ignore:
Timestamp:
Jun 17, 2013 2:52:12 PM (11 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: Disable flushing of the log while loading the guest-state (only while entering VT-x from ring-3, debug builds).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r46590 r46595  
    66346634    Assert(!RTThreadPreemptIsEnabled(NIL_RTTHREAD));
    66356635
     6636#ifdef LOG_ENABLED
     6637    /** @todo r=ramshankar: I'm not able to use VMMRZCallRing3Disable() here,
     6638     *        probably not initialized yet? Anyway this will do for now. */
     6639    bool fCallerDisabledLogFlush = VMMR0IsLogFlushDisabled(pVCpu);
     6640    VMMR0LogFlushDisable(pVCpu);
     6641#endif
     6642
    66366643    LogFlowFunc(("pVM=%p pVCpu=%p\n", pVM, pVCpu));
    66376644
     
    66896696             ("Missed updating flags while loading guest state. pVM=%p pVCpu=%p idCpu=%RU32 fContextUseFlags=%#RX32\n",
    66906697              pVM, pVCpu, pVCpu->idCpu, pVCpu->hm.s.fContextUseFlags));
     6698
     6699#ifdef LOG_ENABLED
     6700    /* Only reenable log-flushing if it the caller originally had it enabled. */
     6701    if (!fCallerDisabledLogFlush)
     6702        VMMR0LogFlushEnable(pVCpu);
     6703#endif
    66916704
    66926705    STAM_PROFILE_ADV_STOP(&pVCpu->hm.s.StatLoadGuestState, x);
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