VirtualBox

Changeset 19592 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
May 11, 2009 11:21:13 PM (16 years ago)
Author:
vboxsync
Message:

HostDrivers/Support,VMMR0: Use critical_enter and critical_exit to disable preemption and sched_pin and sched_unpin to prevent the VM from getting scheduled to another CPU instead of disabling interrupts. Use the IPRT dependency array already present in SUPDrv instead of creating our own

File:
1 edited

Legend:

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

    r19462 r19592  
    619619            STAM_COUNTER_INC(&pVM->vmm.s.StatRunRC);
    620620
    621 #ifndef RT_OS_WINDOWS /** @todo check other hosts */
     621#if !defined(RT_OS_WINDOWS) && !defined(RT_OS_FREEBSD) /** @todo check other hosts */
    622622            RTCCUINTREG uFlags = ASMIntDisableFlags();
    623623#endif
     
    642642
    643643            ASMAtomicWriteU32(&pVCpu->idHostCpu, NIL_RTCPUID);
    644 #ifndef RT_OS_WINDOWS /** @todo check other hosts */
     644#if !defined(RT_OS_WINDOWS) && !defined(RT_OS_FREEBSD) /** @todo check other hosts */
    645645            ASMSetFlags(uFlags);
    646646#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette