VirtualBox

Changeset 30050 in vbox


Ignore:
Timestamp:
Jun 7, 2010 7:11:15 AM (15 years ago)
Author:
vboxsync
Message:

VMM: Removed 4 unused functions.

Location:
trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/em.h

    r28800 r30050  
    214214VMMR3DECL(int)      EMR3Interpret(PVM pVM);
    215215
    216 VMMR3DECL(void)     EMR3ReleaseOwnedLocks(PVM pVM);
    217 
    218216/**
    219217 * Command argument for EMR3RawSetMode().
  • trunk/include/VBox/iom.h

    r28800 r30050  
    264264VMMR3DECL(int)  IOMR3MMIODeregister(PVM pVM, PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange);
    265265
    266 VMMR3DECL(void) IOMR3ReleaseOwnedLocks(PVM pVM);
    267266VMMR3DECL(PPDMCRITSECT) IOMR3GetCritSect(PVM pVM);
    268267
  • trunk/include/VBox/mm.h

    r28800 r30050  
    253253
    254254VMMR3DECL(int)      MMR3HCPhys2HCVirt(PVM pVM, RTHCPHYS HCPhys, void **ppv);
    255 VMMR3DECL(void)     MMR3ReleaseOwnedLocks(PVM pVM);
    256255
    257256/** @defgroup grp_mm_r3_hyper  Hypervisor Memory Manager (HC R3 Portion)
  • trunk/include/VBox/pdmapi.h

    r29521 r30050  
    126126VMMR3DECL(int)  PDMR3VMMDevHeapFree(PVM pVM, RTR3PTR pv);
    127127VMMR3DECL(int)  PDMR3UnregisterVMMDevHeap(PVM pVM, RTGCPHYS GCPhys);
    128 
    129 VMMR3DECL(void) PDMR3ReleaseOwnedLocks(PVM pVM);
    130128/** @} */
    131129
  • trunk/include/VBox/pgm.h

    r30040 r30050  
    552552VMMR3DECL(int)      PGMR3PhysAllocateLargeHandyPage(PVM pVM, RTGCPHYS GCPhys);
    553553
    554 VMMR3DECL(void)     PGMR3ReleaseOwnedLocks(PVM pVM);
    555 
    556554VMMR3DECL(int)      PGMR3CheckIntegrity(PVM pVM);
    557555
  • trunk/src/VBox/VMM/EM.cpp

    r29329 r30050  
    16331633}
    16341634
    1635 /**
    1636  * Release the IOM lock if owned by the current VCPU
    1637  *
    1638  * @param   pVM         The VM to operate on.
    1639  */
    1640 VMMR3DECL(void) EMR3ReleaseOwnedLocks(PVM pVM)
    1641 {
    1642     while (PDMCritSectIsOwner(&pVM->em.s.CritSectREM))
    1643         PDMCritSectLeave(&pVM->em.s.CritSectREM);
    1644 }
    1645 
    16461635
    16471636/**
  • trunk/src/VBox/VMM/IOM.cpp

    r29436 r30050  
    17001700
    17011701/**
    1702  * Release the IOM lock if owned by the current VCPU
    1703  *
    1704  * @param   pVM         The VM to operate on.
    1705  */
    1706 VMMR3DECL(void) IOMR3ReleaseOwnedLocks(PVM pVM)
    1707 {
    1708     while (PDMCritSectIsOwner(&pVM->iom.s.EmtLock))
    1709         PDMCritSectLeave(&pVM->iom.s.EmtLock);
    1710 }
    1711 
    1712 
    1713 /**
    17141702 * For TM only!
    17151703 *
  • trunk/src/VBox/VMM/MMHyper.cpp

    r28800 r30050  
    12241224}
    12251225
    1226 /**
    1227  * Release the MM hypervisor heap lock if owned by the current VCPU
    1228  *
    1229  * @param   pVM         The VM to operate on.
    1230  */
    1231 VMMR3DECL(void) MMR3ReleaseOwnedLocks(PVM pVM)
    1232 {
    1233     PMMHYPERHEAP pHeap = pVM->mm.s.CTX_SUFF(pHyperHeap);
    1234 
    1235     while (pHeap && PDMCritSectIsOwner(&pHeap->Lock))
    1236         PDMCritSectLeave(&pHeap->Lock);
    1237 }
    1238 
    12391226
    12401227/**
  • trunk/src/VBox/VMM/PDM.cpp

    r28801 r30050  
    21182118}
    21192119
    2120 /**
    2121  * Release the PDM lock if owned by the current VCPU
    2122  *
    2123  * @param   pVM         The VM to operate on.
    2124  */
    2125 VMMR3DECL(void) PDMR3ReleaseOwnedLocks(PVM pVM)
    2126 {
    2127     while (PDMCritSectIsOwner(&pVM->pdm.s.CritSect))
    2128         PDMCritSectLeave(&pVM->pdm.s.CritSect);
    2129 }
  • trunk/src/VBox/VMM/PGM.cpp

    r29646 r30050  
    33503350}
    33513351
    3352 /**
    3353  * Release the pgm lock if owned by the current VCPU
    3354  *
    3355  * @param   pVM         The VM to operate on.
    3356  */
    3357 VMMR3DECL(void) PGMR3ReleaseOwnedLocks(PVM pVM)
    3358 {
    3359     while (PDMCritSectIsOwner(&pVM->pgm.s.CritSect))
    3360         PDMCritSectLeave(&pVM->pgm.s.CritSect);
    3361 }
    33623352
    33633353/**
  • trunk/src/VBox/VMM/VMMGuruMeditation.cpp

    r28800 r30050  
    55
    66/*
    7  * Copyright (C) 2006-2007 Oracle Corporation
     7 * Copyright (C) 2006-2010 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    210210
    211211    /* Release owned locks to make sure other VCPUs can continue in case they were waiting for one. */
    212 #if 1
    213212    PDMR3CritSectLeaveAll(pVM);
    214 #else
    215     MMR3ReleaseOwnedLocks(pVM);
    216     PGMR3ReleaseOwnedLocks(pVM);
    217     PDMR3ReleaseOwnedLocks(pVM);
    218     IOMR3ReleaseOwnedLocks(pVM);
    219     EMR3ReleaseOwnedLocks(pVM);
    220 #endif
    221213
    222214    /*
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