VirtualBox

Changeset 91907 in vbox for trunk/src


Ignore:
Timestamp:
Oct 20, 2021 7:00:05 PM (3 years ago)
Author:
vboxsync
Message:

VMM/MM: Eliminated MMHyperCCToRC and MMHyperR0ToRC. bugref:9517

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

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

    r91016 r91907  
    327327
    328328
    329 /**
    330  * Converts a ring-0 host context address in the Hypervisor memory region to a raw-mode context address.
    331  *
    332  * @returns raw-mode context address.
    333  * @param   pVM         The cross context VM structure.
    334  * @param   R0Ptr       The ring-0 host context address.
    335  *                      You'll be damned if this is not in the HMA! :-)
    336  * @thread  The Emulation Thread.
    337  */
    338 VMMDECL(RTRCPTR) MMHyperR0ToRC(PVM pVM, RTR0PTR R0Ptr)
    339 {
    340     uint32_t off;
    341     PMMLOOKUPHYPER pLookup = mmHyperLookupR0(pVM, R0Ptr, &off);
    342     if (pLookup)
    343         return mmHyperLookupCalcRC(pVM, pLookup, off);
    344     return NIL_RTRCPTR;
    345 }
    346 
    347 
    348329#ifndef IN_RING0
    349330/**
     
    524505}
    525506#endif
    526 
    527 
    528 /**
    529  * Converts a current context address in the Hypervisor memory region to a raw-mode context address.
    530  *
    531  * @returns guest context address.
    532  * @param   pVM         The cross context VM structure.
    533  * @param   pv          The current context address.
    534  *                      You'll be damned if this is not in the HMA! :-)
    535  * @thread  The Emulation Thread.
    536  */
    537 VMMDECL(RTRCPTR) MMHyperCCToRC(PVM pVM, void *pv)
    538 {
    539     uint32_t off;
    540     PMMLOOKUPHYPER pLookup = mmHyperLookupCC(pVM, pv, &off);
    541     if (pLookup)
    542         return mmHyperLookupCalcRC(pVM, pLookup, off);
    543     return NIL_RTRCPTR;
    544 }
    545507
    546508
  • trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp

    r91854 r91907  
    24762476        const RTGCPHYS GCPhysPage = pPage->GCPhys & ~(RTGCPHYS)PAGE_OFFSET_MASK;
    24772477        rc = PGMHandlerPhysicalRegister(pVM, GCPhysPage, GCPhysPage + PAGE_OFFSET_MASK, pPool->hAccessHandlerType,
    2478                                         MMHyperCCToR3(pVM, pPage), MMHyperCCToR0(pVM, pPage), MMHyperCCToRC(pVM, pPage),
    2479                                         NIL_RTR3PTR /*pszDesc*/);
     2478                                        MMHyperCCToR3(pVM, pPage), MMHyperCCToR0(pVM, pPage), NIL_RTRCPTR, NIL_RTR3PTR /*pszDesc*/);
    24802479        /** @todo we should probably deal with out-of-memory conditions here, but for now increasing
    24812480         * the heap size should suffice. */
  • trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp

    r91874 r91907  
    42724272             */
    42734273            rc = PGMHandlerPhysicalRegister(pVM, GCPhys, GCPhysLast, pVM->pgm.s.hRomPhysHandlerType,
    4274                                             pRomNew, MMHyperCCToR0(pVM, pRomNew), MMHyperCCToRC(pVM, pRomNew), pszDesc);
     4274                                            pRomNew, MMHyperCCToR0(pVM, pRomNew), NIL_RTRCPTR, pszDesc);
    42754275            if (RT_SUCCESS(rc))
    42764276            {
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