VirtualBox

Ignore:
Timestamp:
Aug 4, 2010 8:21:17 AM (14 years ago)
Author:
vboxsync
Message:

Disable preemption when checking the shared modules

File:
1 edited

Legend:

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

    r30889 r31348  
    965965            PVMCPU pVCpu = &pVM->aCpus[idCpu];
    966966
     967# ifdef VBOX_WITH_VMMR0_DISABLE_PREEMPTION
     968            RTTHREADPREEMPTSTATE PreemptState = RTTHREADPREEMPTSTATE_INITIALIZER;
     969            RTThreadPreemptDisable(&PreemptState);
     970# elif !defined(RT_OS_WINDOWS)
     971            RTCCUINTREG uFlags = ASMIntDisableFlags();
     972# endif
    967973            /* Select a valid VCPU context. */
    968974            ASMAtomicWriteU32(&pVCpu->idHostCpu, RTMpCpuId());
     
    982988            /* Clear the VCPU context. */
    983989            ASMAtomicWriteU32(&pVCpu->idHostCpu, NIL_RTCPUID);
     990# ifdef VBOX_WITH_VMMR0_DISABLE_PREEMPTION
     991            RTThreadPreemptRestore(&PreemptState);
     992# elif !defined(RT_OS_WINDOWS)
     993            ASMSetFlags(uFlags);
     994# endif
    984995            return rc;
    985996        }
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