VirtualBox

Changeset 93623 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 6, 2022 4:01:12 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

    r93622 r93623  
    244244
    245245/**
    246  * Calculate the guest context address of an offset into the HMA memory chunk.
    247  *
    248  * @returns the guest context base address.
    249  * @param   pVM         The cross context VM structure.
    250  * @param   pLookup     The HMA lookup record.
    251  * @param   off         The offset into the HMA memory chunk.
    252  */
    253 DECLINLINE(void *) mmHyperLookupCalcCC(PVM pVM, PMMLOOKUPHYPER pLookup, uint32_t off)
    254 {
    255 #ifdef IN_RING0
    256     return mmHyperLookupCalcR0(pVM, pLookup, off);
    257 #elif defined(IN_RING3)
    258     NOREF(pVM);
    259     return mmHyperLookupCalcR3(pLookup, off);
    260 #else
    261 # error "Neither IN_RING0 nor IN_RING3!"
    262 #endif
    263 }
    264 
    265 
    266 /**
    267246 * Converts a ring-3 host context address in the Hypervisor memory region to a ring-0 host context address.
    268247 *
     
    284263
    285264
    286 #ifndef IN_RING3
     265#ifdef IN_RING0
    287266/**
    288267 * Converts a ring-3 host context address in the Hypervisor memory region to a current context address.
     
    299278    PMMLOOKUPHYPER pLookup = mmHyperLookupR3(pVM, R3Ptr, &off);
    300279    if (pLookup)
    301         return mmHyperLookupCalcCC(pVM, pLookup, off);
     280        return mmHyperLookupCalcR0(pVM, pLookup, off);
    302281    return NULL;
    303282}
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