VirtualBox

儲存庫 vbox 的更動 67587


忽略:
時間撮記:
2017-6-23 下午04:18:49 (7 年 以前)
作者:
vboxsync
訊息:

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.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • 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;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette