VirtualBox

Changeset 93629 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 6, 2022 11:45:44 PM (3 years ago)
Author:
vboxsync
Message:

VMM/MMHyper: Removed unused code. [build fix] bugref:10093

File:
1 edited

Legend:

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

    r93626 r93629  
    9090    return NULL;
    9191}
    92 
    93 
    94 #ifdef IN_RING3
    95 /**
    96  * Lookup a current context address.
    97  *
    98  * @returns Pointer to the corresponding lookup record.
    99  * @returns NULL on failure.
    100  * @param   pVM     The cross context VM structure.
    101  * @param   pv      The current context address to lookup.
    102  * @param   poff    Where to store the offset into the HMA memory chunk.
    103  */
    104 DECLINLINE(PMMLOOKUPHYPER) mmHyperLookupCC(PVM pVM, void *pv, uint32_t *poff)
    105 {
    106     return mmHyperLookupR3(pVM, pv, poff);
    107 }
    108 #endif
    109 
    110 
    111 #ifdef IN_RING3
    112 /**
    113  * Calculate the host context ring-3 address of an offset into the HMA memory chunk.
    114  *
    115  * @returns the host context ring-3 address.
    116  * @param   pLookup     The HMA lookup record.
    117  * @param   off         The offset into the HMA memory chunk.
    118  */
    119 DECLINLINE(RTR3PTR) mmHyperLookupCalcR3(PMMLOOKUPHYPER pLookup, uint32_t off)
    120 {
    121     switch (pLookup->enmType)
    122     {
    123         case MMLOOKUPHYPERTYPE_LOCKED:
    124             return (RTR3PTR)((RTR3UINTPTR)pLookup->u.Locked.pvR3 + off);
    125         case MMLOOKUPHYPERTYPE_HCPHYS:
    126             return (RTR3PTR)((RTR3UINTPTR)pLookup->u.HCPhys.pvR3 + off);
    127         default:
    128             AssertMsgFailed(("enmType=%d\n", pLookup->enmType));
    129             return NIL_RTR3PTR;
    130     }
    131 }
    132 #endif
    13392
    13493
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