VirtualBox

Changeset 92193 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 3, 2021 2:46:30 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148022
Message:

VMM/MM,DevPcArch: Split the base RAM allocation into conventional (< 640KB) and extended (>= 1MB) ranges, leaving the UMA w/o RAM range backing. This will fit better with NEM, esp. on linux. [build fix] bugref:10122

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevPcArch.cpp

    r92192 r92193  
    189189    }
    190190    return PDMDevHlpDBGFStop(pDevIns, RT_SRC_POS, "Port=%#x cb=%d u32=%#x\n", offPort, cb, u32);
    191 }
    192 
    193 
    194 /**
    195  * @callback_method_impl{FNIOMMMIONEWWRITE, Ignores writes to the reserved memory.}
    196  * @note    off is an absolute address.
    197  */
    198 static DECLCALLBACK(VBOXSTRICTRC)
    199 pcarchReservedMemoryWrite(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS off, void const *pv, unsigned cb)
    200 {
    201     Log2(("pcarchReservedMemoryRead: %#RGp LB %#x %.*Rhxs\n", off, cb, RT_MIN(cb, 16), pv));
    202     RT_NOREF(pDevIns, pvUser, off, pv, cb);
    203     return VINF_SUCCESS;
    204 }
    205 
    206 
    207 /**
    208  * @callback_method_impl{FNIOMMMIONEWREAD, The reserved memory reads as 0xff.}
    209  * @note    off is an absolute address.
    210  */
    211 static DECLCALLBACK(VBOXSTRICTRC)
    212 pcarchReservedMemoryRead(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS off, void *pv, unsigned cb)
    213 {
    214     Log2(("pcarchReservedMemoryRead: %#RGp LB %#x\n", off, cb));
    215     RT_NOREF(pDevIns, pvUser, off);
    216     memset(pv, 0xff, cb);
    217     return VINF_SUCCESS;
    218191}
    219192
Note: See TracChangeset for help on using the changeset viewer.

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