Changeset 93623 in vbox for trunk/src/VBox
- Timestamp:
- Feb 6, 2022 4:01:12 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/MMAll.cpp
r93622 r93623 244 244 245 245 /** 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_RING0256 return mmHyperLookupCalcR0(pVM, pLookup, off);257 #elif defined(IN_RING3)258 NOREF(pVM);259 return mmHyperLookupCalcR3(pLookup, off);260 #else261 # error "Neither IN_RING0 nor IN_RING3!"262 #endif263 }264 265 266 /**267 246 * Converts a ring-3 host context address in the Hypervisor memory region to a ring-0 host context address. 268 247 * … … 284 263 285 264 286 #if ndef IN_RING3265 #ifdef IN_RING0 287 266 /** 288 267 * Converts a ring-3 host context address in the Hypervisor memory region to a current context address. … … 299 278 PMMLOOKUPHYPER pLookup = mmHyperLookupR3(pVM, R3Ptr, &off); 300 279 if (pLookup) 301 return mmHyperLookupCalc CC(pVM, pLookup, off);280 return mmHyperLookupCalcR0(pVM, pLookup, off); 302 281 return NULL; 303 282 }
Note:
See TracChangeset
for help on using the changeset viewer.