VirtualBox

Changeset 14600 in vbox for trunk


Ignore:
Timestamp:
Nov 25, 2008 8:51:37 PM (16 years ago)
Author:
vboxsync
Message:

MMHyperXToR0: fail and asset if the address wasn't mapped into ring-0 (instead of quietly returning the ring-3 address).

File:
1 edited

Legend:

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

    r14599 r14600  
    255255            if (pLookup->u.Locked.pvR0)
    256256                return (RTR0PTR)((RTR0UINTPTR)pLookup->u.Locked.pvR0 + off);
    257 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE /** @todo make NIL_RTR0PTR default! */
     257            AssertMsgFailed(("%s\n", R3STRING(pLookup->pszDesc)));
    258258            return NIL_RTR0PTR;
    259 #else
    260             return (RTR0PTR)((RTR3UINTPTR)pLookup->u.Locked.pvR3 + off);
    261 #endif
    262259
    263260        case MMLOOKUPHYPERTYPE_HCPHYS:
    264261            if (pLookup->u.HCPhys.pvR0)
    265262                return (RTR0PTR)((RTR0UINTPTR)pLookup->u.HCPhys.pvR0 + off);
     263            AssertMsgFailed(("%s\n", R3STRING(pLookup->pszDesc)));
    266264            return NIL_RTR0PTR;
     265
    267266        default:
    268267            AssertMsgFailed(("enmType=%d\n", pLookup->enmType));
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