VirtualBox

Ignore:
Timestamp:
Sep 21, 2007 2:58:57 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
24719
Message:

Raise IRQL to DISPATCH_LEVEL to prevent Windows from rescheduling us to a different CPU.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp

    r4941 r4960  
    280280        ||  ulCmd == SUP_IOCTL_FAST_DO_NOP)
    281281    {
    282         int rc = supdrvIOCtlFast(ulCmd, pDevExt, pSession);
     282        KIRQL oldIrql;
     283        int   rc;
     284
     285                /* Raise the IRQL to DISPATCH_LEVEl to prevent Windows from rescheduling us to another CPU/core. */
     286                Assert(KeGetCurrentIrql() <= DISPATCH_LEVEL);
     287                KeRaiseIrql(DISPATCH_LEVEL, &oldIrql);       
     288        rc = supdrvIOCtlFast(ulCmd, pDevExt, pSession);
     289        KeLowerIrql(oldIrql);
    283290
    284291        /* 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