VirtualBox

Changeset 20868 in vbox


Ignore:
Timestamp:
Jun 24, 2009 12:10:55 AM (15 years ago)
Author:
vboxsync
Message:

DBGFR3MemRead: Support for reading HMA by virtual address.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/DBGFMem.cpp

    r19576 r20868  
    162162    if (DBGFADDRESS_IS_HMA(pAddress))
    163163    {
    164         rc = VERR_INVALID_POINTER;
     164        if (DBGFADDRESS_IS_PHYS(pAddress))
     165            rc = VERR_INVALID_POINTER;
     166        else
     167            rc = MMR3HyperReadGCVirt(pVM, pvBuf, pAddress->FlatPtr, cbRead);
    165168    }
    166169    else
  • trunk/src/VBox/VMM/MMHyper.cpp

    r20858 r20868  
    11881188{
    11891189    if (GCPtr - pVM->mm.s.pvHyperAreaGC >= pVM->mm.s.cbHyperArea)
    1190         return VERR_INVALID_PARAMETER;
     1190        return VERR_INVALID_POINTER;
    11911191    return PGMR3MapRead(pVM, pvDst, GCPtr, cb);
    11921192}
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