VirtualBox

Changeset 90992 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Aug 30, 2021 9:52:14 AM (3 years ago)
Author:
vboxsync
Message:

VMM: Eliminated VMMCALLRING3_PGM_LOCK. bugref:6695

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAll.cpp

    r90784 r90992  
    35273527{
    35283528#if defined(VBOX_STRICT)
    3529     int rc = PDMCritSectEnterDebug(pVM, &pVM->pgm.s.CritSectX, VERR_SEM_BUSY, (uintptr_t)ASMReturnAddress(), RT_SRC_POS_ARGS);
     3529    int rc = PDMCritSectEnterDebug(pVM, &pVM->pgm.s.CritSectX, VINF_SUCCESS, (uintptr_t)ASMReturnAddress(), RT_SRC_POS_ARGS);
    35303530#else
    3531     int rc = PDMCritSectEnter(pVM, &pVM->pgm.s.CritSectX, VERR_SEM_BUSY);
     3531    int rc = PDMCritSectEnter(pVM, &pVM->pgm.s.CritSectX, VINF_SUCCESS);
    35323532#endif
    35333533    if (RT_SUCCESS(rc))
    35343534        return rc;
    3535 
    3536 #ifdef IN_RING0
    3537     if (rc == VERR_SEM_BUSY)
    3538     {
    3539         rc = VMMRZCallRing3NoCpu(pVM, VMMCALLRING3_PGM_LOCK, 0);
    3540         if (RT_SUCCESS(rc))
    3541             return rc;
    3542     }
    3543 #endif
    35443535    if (fVoid)
    35453536        PDM_CRITSECT_RELEASE_ASSERT_RC(pVM, &pVM->pgm.s.CritSectX, rc);
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