- Timestamp:
- Oct 20, 2021 7:00:05 PM (3 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/MMAll.cpp
r91016 r91907 327 327 328 328 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 348 329 #ifndef IN_RING0 349 330 /** … … 524 505 } 525 506 #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 }545 507 546 508 -
trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp
r91854 r91907 2476 2476 const RTGCPHYS GCPhysPage = pPage->GCPhys & ~(RTGCPHYS)PAGE_OFFSET_MASK; 2477 2477 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*/); 2480 2479 /** @todo we should probably deal with out-of-memory conditions here, but for now increasing 2481 2480 * the heap size should suffice. */ -
trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp
r91874 r91907 4272 4272 */ 4273 4273 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); 4275 4275 if (RT_SUCCESS(rc)) 4276 4276 {
Note:
See TracChangeset
for help on using the changeset viewer.