VirtualBox

Changeset 40776 in vbox


Ignore:
Timestamp:
Apr 5, 2012 1:43:02 PM (13 years ago)
Author:
vboxsync
Message:

VMM: Better handle protected pages in GC.

File:
1 edited

Legend:

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

    r40727 r40776  
    616616#ifdef IN_RC
    617617    NOREF(pVCpu);
    618     return MMGCRamReadNoTrapHandler(pDest, (void *)(uintptr_t)GCSrc, cb);
     618    int rc = MMGCRamReadNoTrapHandler(pDest, (void *)(uintptr_t)GCSrc, cb);
     619    /* Page may be protected and not directly accessible. */
     620    if (rc == VERR_ACCESS_DENIED)
     621        rc = VINF_IOM_R3_IOPORT_WRITE;
     622    return rc;
    619623#else
    620624    return PGMPhysReadGCPtr(pVCpu, pDest, GCSrc, cb);
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