VirtualBox

Changeset 83280 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 13, 2020 12:19:26 PM (5 years ago)
Author:
vboxsync
Message:

VMSVGA: Do not needlessly register VGA LFB handler when updating framebuffer mapping.

File:
1 edited

Legend:

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

    r83142 r83280  
    56435643        if (RT_SUCCESS(rc))
    56445644        {
    5645             rc = PGMHandlerPhysicalRegister(PDMDevHlpGetVM(pDevIns), GCPhysAddress, GCPhysAddress + (pThis->vram_size - 1),
    5646                                             pThis->hLfbAccessHandlerType, pDevIns, pDevIns->pDevInsR0RemoveMe,
    5647                                             pDevIns->pDevInsForRC, "VGA LFB");
    5648             AssertLogRelRC(rc);
    5649             if (RT_SUCCESS(rc))
     5645# ifdef VBOX_WITH_VMSVGA
     5646            Assert(!pThis->svga.fEnabled || !pThis->svga.fVRAMTracking);
     5647            if (    !pThis->svga.fEnabled
     5648                ||  (   pThis->svga.fEnabled
     5649                     && pThis->svga.fVRAMTracking
     5650                    )
     5651               )
     5652# endif
    56505653            {
    5651                 pThis->GCPhysVRAM = GCPhysAddress;
    5652                 pThis->vbe_regs[VBE_DISPI_INDEX_FB_BASE_HI] = GCPhysAddress >> 16;
     5654                rc = PGMHandlerPhysicalRegister(PDMDevHlpGetVM(pDevIns), GCPhysAddress, GCPhysAddress + (pThis->vram_size - 1),
     5655                                                pThis->hLfbAccessHandlerType, pDevIns, pDevIns->pDevInsR0RemoveMe,
     5656                                                pDevIns->pDevInsForRC, "VGA LFB");
     5657                AssertLogRelRC(rc);
    56535658            }
     5659
     5660            pThis->GCPhysVRAM = GCPhysAddress;
     5661            pThis->vbe_regs[VBE_DISPI_INDEX_FB_BASE_HI] = GCPhysAddress >> 16;
     5662
    56545663            rc = VINF_PCI_MAPPING_DONE; /* caller doesn't care about any other status, so no problem overwriting error here */
    56555664        }
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