Changeset 23430 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- Sep 30, 2009 9:53:51 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 53011
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp
r20374 r23430 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 */ 327 333 /* Raise the IRQL to DISPATCH_LEVEL to prevent Windows from rescheduling us to another CPU/core. */ 328 334 Assert(KeGetCurrentIrql() <= DISPATCH_LEVEL); … … 331 337 int rc = supdrvIOCtlFast(ulCmd, (unsigned)(uintptr_t)pIrp->UserBuffer /* VMCPU id */, pDevExt, pSession); 332 338 KeLowerIrql(oldIrql); 339 # endif 333 340 #endif 334 341
Note:
See TracChangeset
for help on using the changeset viewer.