VirtualBox

Changeset 54717 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Mar 11, 2015 4:04:48 PM (10 years ago)
Author:
vboxsync
Message:

VMM/VMMR0: Clear idHostCpu *before* deregistering the preemption hook.

File:
1 edited

Legend:

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

    r54712 r54717  
    510510VMMR0DECL(int) VMMR0ThreadCtxHooksDeregister(PVMCPU pVCpu)
    511511{
     512    /* Clear the VCPU <-> host CPU mapping as we've left HM context. See @bugref{7726} comment #19. */
     513    ASMAtomicWriteU32(&pVCpu->idHostCpu, NIL_RTCPUID);
     514
    512515    if (pVCpu->vmm.s.hR0ThreadCtx != NIL_RTTHREADCTX)
    513516    {
     
    516519        AssertRCReturn(rc, rc);
    517520    }
    518 
    519     /* Clear the VCPU <-> host CPU mapping as we've left HM context. See @bugref{7726} comment #19. */
    520     ASMAtomicWriteU32(&pVCpu->idHostCpu, NIL_RTCPUID);
    521521    return VINF_SUCCESS;
    522522}
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