VirtualBox

Changeset 76204 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 13, 2018 11:08:24 AM (6 years ago)
Author:
vboxsync
Message:

DevVGA: Fixed vgaMMIORead to correctly return VINF_IOM_R3_MMIO_READ (better fix)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r76201 r76204  
    12461246#endif
    12471247
     1248#ifdef VMSVGA_WITH_VGA_FB_BACKUP_AND_IN_RZ
     1249    /* VMSVGA keeps the VGA and SVGA framebuffers separate unlike this boch-based
     1250       VGA implementation, so we fake it by going to ring-3 and using a heap buffer.  */
     1251    if (!pThis->svga.fEnabled)
     1252    { /*likely*/ }
     1253    else
     1254    {
     1255        *prc = VINF_IOM_R3_MMIO_READ;
     1256        return 0;
     1257    }
     1258#endif
     1259
    12481260    addr &= 0x1ffff;
    12491261    switch(memory_map_mode) {
     
    34303442    Assert(PDMCritSectIsOwner(pDevIns->CTX_SUFF(pCritSectRo)));
    34313443    NOREF(pvUser);
    3432 
    3433 #ifdef VMSVGA_WITH_VGA_FB_BACKUP_AND_IN_RZ
    3434     /* VMSVGA keeps the VGA and SVGA framebuffers separate unlike this boch-based
    3435        VGA implementation, so we fake it by going to ring-3 and using a heap buffer.  */
    3436     if (!pThis->svga.fEnabled) { /*likely*/ }
    3437     else                       return VINF_IOM_R3_MMIO_READ;
    3438 #endif
    34393444
    34403445    int rc = VINF_SUCCESS;
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