VirtualBox

Changeset 64327 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Oct 19, 2016 5:42:18 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
111406
Message:

PGM: Allow pre-registered MMIO regions up to 1TB in size by using multiple registration chunks (just like we do for RAM). The limits are now defined in VBox/param.h instead of being hardcoded in the sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllHandler.cpp

    r64323 r64327  
    124124
    125125/**
    126  * Creates an physical access handler.
     126 * Creates a physical access handler.
    127127 *
    128128 * @returns VBox status code.
     
    194194
    195195/**
    196  * Register a access handler for a physical range.
     196 * Duplicates a physical access handler.
    197197 *
    198198 * @returns VBox status code.
    199199 * @retval  VINF_SUCCESS when successfully installed.
    200  * @retval  VINF_PGM_GCPHYS_ALIASED when the shadow PTs could be updated because
    201  *          the guest page aliased or/and mapped by multiple PTs. A CR3 sync has been
    202  *          flagged together with a pool clearing.
    203  * @retval  VERR_PGM_HANDLER_PHYSICAL_CONFLICT if the range conflicts with an existing
    204  *          one. A debug assertion is raised.
     200 *
     201 * @param   pVM             The cross context VM structure.
     202 * @param   pPhysHandlerSrc The source handler to duplicate
     203 * @param   ppPhysHandler   Where to return the access handler structure on
     204 *                          success.
     205 */
     206int pgmHandlerPhysicalExDup(PVM pVM, PPGMPHYSHANDLER pPhysHandlerSrc, PPGMPHYSHANDLER *ppPhysHandler)
     207{
     208    return pgmHandlerPhysicalExCreate(pVM,
     209                                      pPhysHandlerSrc->hType,
     210                                      pPhysHandlerSrc->pvUserR3,
     211                                      pPhysHandlerSrc->pvUserR0,
     212                                      pPhysHandlerSrc->pvUserRC,
     213                                      pPhysHandlerSrc->pszDesc,
     214                                      ppPhysHandler);
     215}
     216
     217
     218/**
     219 * Register a access handler for a physical range.
     220 *
     221 * @returns VBox status code.
     222 * @retval  VINF_SUCCESS when successfully installed.
    205223 *
    206224 * @param   pVM             The cross context VM structure.
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