VirtualBox

Changeset 48040 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 24, 2013 11:32:08 AM (11 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: Avoid loading the host state earlier when we can get preempted (when thread-context hooks are used).

File:
1 edited

Legend:

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

    r48039 r48040  
    70497049
    70507050    LogFlowFunc(("pVM=%p pVCpu=%p\n", pVM, pVCpu));
    7051     return hmR0VmxSaveHostState(pVM, pVCpu);
     7051
     7052    /* When thread-context hooks are available, this is done later (when preemption/interrupts are disabled). */
     7053    if (!VMMR0ThreadCtxHooksAreRegistered(pVCpu))
     7054    {
     7055        Assert(!RTThreadPreemptIsEnabled(NIL_RTTHREAD));
     7056        return hmR0VmxSaveHostState(pVM, pVCpu);
     7057    }
     7058    return VINF_SUCCESS;
    70527059}
    70537060
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