VirtualBox

Changeset 65898 in vbox


Ignore:
Timestamp:
Feb 28, 2017 2:41:34 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
113690
Message:

VMMR0.cpp: How to disable preemption hooks.

File:
1 edited

Legend:

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

    r64626 r65898  
    625625    Assert(pVCpu->vmm.s.hCtxHook == NIL_RTTHREADCTXHOOK);
    626626
     627#if 1 /* To disable this stuff change to zero. */
    627628    int rc = RTThreadCtxHookCreate(&pVCpu->vmm.s.hCtxHook, 0, vmmR0ThreadCtxCallback, pVCpu);
    628629    if (RT_SUCCESS(rc))
    629630        return rc;
     631#else
     632    RT_NOREF(vmmR0ThreadCtxCallback);
     633    int rc = VERR_NOT_SUPPORTED;
     634#endif
    630635
    631636    pVCpu->vmm.s.hCtxHook = NIL_RTTHREADCTXHOOK;
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