VirtualBox

Ignore:
Timestamp:
May 24, 2009 2:47:43 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
47659
Message:

VMM,SUPDrv-win,Config.kmk: VBOX_WITH_VMMR0_DISABLE_PREEMPTION

Location:
trunk/src/VBox/HostDrivers/Support
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/Makefile.kmk

    r19892 r19957  
    164164VBoxDrv_DEFS          = IN_RT_R0 IN_SUP_R0 SUPDRV_WITH_RELEASE_LOGGER
    165165VBoxDrv_DEFS.amd64    = RT_WITH_W64_UNWIND_HACK
     166ifdef VBOX_WITH_VMMR0_DISABLE_PREEMPTION
     167VBoxDrv_DEFS         += VBOX_WITH_VMMR0_DISABLE_PREEMPTION
     168endif
    166169VBoxDrv_SDKS          = W2K3DDK WINPSDKINCS
    167170VBoxDrv_INCS         := $(PATH_SUB_CURRENT)
  • trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp

    r18478 r19957  
    322322        ||  ulCmd == SUP_IOCTL_FAST_DO_NOP)
    323323    {
    324         /* Raise the IRQL to DISPATCH_LEVEl to prevent Windows from rescheduling us to another CPU/core. */
     324#ifdef VBOX_WITH_VMMR0_DISABLE_PREEMPTION
     325        int rc = supdrvIOCtlFast(ulCmd, (unsigned)(uintptr_t)pIrp->UserBuffer /* VMCPU id */, pDevExt, pSession);
     326#else
     327        /* Raise the IRQL to DISPATCH_LEVEL to prevent Windows from rescheduling us to another CPU/core. */
    325328        Assert(KeGetCurrentIrql() <= DISPATCH_LEVEL);
    326329        KIRQL oldIrql;
     
    328331        int rc = supdrvIOCtlFast(ulCmd, (unsigned)(uintptr_t)pIrp->UserBuffer /* VMCPU id */, pDevExt, pSession);
    329332        KeLowerIrql(oldIrql);
     333#endif
    330334
    331335        /* Complete the I/O request. */
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