Changeset 24035 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- Oct 23, 2009 1:07:16 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 53885
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp
r23430 r24035 325 325 int rc = supdrvIOCtlFast(ulCmd, (unsigned)(uintptr_t)pIrp->UserBuffer /* VMCPU id */, pDevExt, pSession); 326 326 #else 327 # if 1 /* experiment */328 /* Prevent Windows from rescheduling us to another CPU/core. */329 KeSetSystemAffinityThread((KAFFINITY)1 << KeGetCurrentProcessorNumber());330 int rc = supdrvIOCtlFast(ulCmd, (unsigned)(uintptr_t)pIrp->UserBuffer /* VMCPU id */, pDevExt, pSession);331 KeSetSystmeAffinityThread(KeQueryActiveProcessors());332 # else /* old code */333 327 /* Raise the IRQL to DISPATCH_LEVEL to prevent Windows from rescheduling us to another CPU/core. */ 334 328 Assert(KeGetCurrentIrql() <= DISPATCH_LEVEL); … … 337 331 int rc = supdrvIOCtlFast(ulCmd, (unsigned)(uintptr_t)pIrp->UserBuffer /* VMCPU id */, pDevExt, pSession); 338 332 KeLowerIrql(oldIrql); 339 # endif340 333 #endif 341 334
Note:
See TracChangeset
for help on using the changeset viewer.