VirtualBox

Changeset 67587 in vbox


Ignore:
Timestamp:
Jun 23, 2017 4:18:49 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
116345
Message:

DevVGA: Add a few missing checks which skip the VRAM alias mapping to the LFB when the PCI BAR isn't set up (i.e. the LFB physical address is 0, conflicting with system RAM). Performance is very bad in this case, but it's not an expected use case to have incorrectly initialized BARs.

File:
1 edited

Legend:

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

    r67556 r67587  
    12401240        /* If all planes are accessible, then map the page to the frame buffer and make it writable. */
    12411241        if (   (pThis->sr[2] & 3) == 3
    1242             && !vga_is_dirty(pThis, addr))
     1242            && !vga_is_dirty(pThis, addr)
     1243            && pThis->GCPhysVRAM)
    12431244        {
    12441245            /** @todo only allow read access (doesn't work now) */
     
    13451346            /* If all planes are accessible, then map the page to the frame buffer and make it writable. */
    13461347            if (   (pThis->sr[2] & 3) == 3
    1347                 && !vga_is_dirty(pThis, addr))
     1348                && !vga_is_dirty(pThis, addr)
     1349                && pThis->GCPhysVRAM)
    13481350            {
    13491351                STAM_COUNTER_INC(&pThis->StatMapPage);
     
    58165818
    58175819    /*
    5818      * Reset the LBF mapping.
     5820     * Reset the LFB mapping.
    58195821     */
    58205822    pThis->fLFBUpdated = false;
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