Changeset 6861 in vbox
- Timestamp:
- Feb 8, 2008 10:04:44 AM (17 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
-
PGMPhys.cpp (modified) (1 diff)
-
VMMAll/PGMAllHandler.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGMPhys.cpp
r6856 r6861 256 256 257 257 return VINF_SUCCESS; 258 } 259 260 261 /** 262 * This is the interface IOM is using to register an MMIO region. 263 * 264 * It will check for conflicts and ensure that a RAM range structure 265 * is present before calling the PGMR3HandlerPhysicalRegister API to 266 * register the callbacks. 267 * 268 */ 269 PDMR3DECL(int) PGMR3PhysMMIORegister(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cb) 270 { 271 return -1; 272 } 273 274 275 /** 276 * This is the interface IOM is using to register an MMIO region. 277 * 278 * It will validate the MMIO region, call PGMHandlerPhysicalDeregister, 279 * and free the RAM range if one was allocated specially for this MMIO 280 * region. 281 */ 282 PDMR3DECL(int) PGMR3PhysMMIODeregister(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cb) 283 { 284 return -1; 285 } 286 287 288 /** 289 * Allocate and register a MMIO2 region. 290 * 291 * As mentioned elsewhere, MMIO2 is just RAM spelled differently. It's 292 * RAM associated with a device. It is also non-shared memory with a 293 * permanent ring-3 mapping and page backing (presently). 294 * 295 * A MMIO2 range may overlap with base memory if a lot of RAM 296 * is configured for the VM, in which case we'll drop the base 297 * memory pages. Presently we will make no attempt to preserve 298 * anything that happens to be present in the base memory that 299 * is replaced, this is of course incorrectly but it's too much 300 * effort. 301 */ 302 PDMR3DECL(int) PGMR3PhysMMIO2Register(PVM pVM, PPDMDEVINS pDevIns, RTGCPHYS GCPhys, RTGCPHYS cb, void **ppv, const char *pszDesc) 303 { 304 return -1; 305 } 306 307 308 /** 309 * Reallocates a MMIO2 region. 310 * 311 * This is done when a guest / the bios / state loading changes the 312 * PCI config. The replacing of base memory has the same restrictions 313 * as during registration, of course. 314 */ 315 PDMR3DECL(int) PGMR3PhysMMIO2Relocate(PVM pVM, PPDMDEVINS pDevIns, RTGCPHYS GCPhysOld, RTGCPHYS GCPhysNew) 316 { 317 return -1; 318 } 319 320 321 /** 322 * Deregisters and frees a MMIO2 region. 323 * 324 * Any physical (and virtual) access handlers registered for the region must 325 * be deregistered before calling this function. 326 */ 327 PDMR3DECL(int) PGMR3PhysMMIO2Deregister(PVM pVM, RTGCPHYS GCPhys, void *pv) 328 { 329 return -1; 258 330 } 259 331 -
trunk/src/VBox/VMM/VMMAll/PGMAllHandler.cpp
r6855 r6861 45 45 * Internal Functions * 46 46 *******************************************************************************/ 47 static int pgmHandlerPhysicalSetRamFlagsAndFlushShadowPTs(PVM pVM, PPGMPHYSHANDLER pCur, PPGMRAMRANGE pRam);47 static int pgmHandlerPhysicalSetRamFlagsAndFlushShadowPTs(PVM pVM, PPGMPHYSHANDLER pCur, PPGMRAMRANGE pRam); 48 48 static void pgmHandlerPhysicalDeregisterNotifyREM(PVM pVM, PPGMPHYSHANDLER pCur); 49 49 static void pgmHandlerPhysicalResetRamFlags(PVM pVM, PPGMPHYSHANDLER pCur);
Note:
See TracChangeset
for help on using the changeset viewer.

