VirtualBox

Changeset 93735 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Feb 14, 2022 5:06:27 PM (3 years ago)
Author:
vboxsync
Message:

VMM/PGM: Allow pfnPfHandler to be NULL in PGMR0HandlerPhysicalTypeSetUpContext (IEMR0InitVM does this for some reason). bugref:10093

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/PGMR0.cpp

    r93716 r93735  
    846846 * @param   pfnHandler      Pointer to the ring-0 handler callback.
    847847 * @param   pfnPfHandler    Pointer to the ring-0 \#PF handler callback.
    848  *                          callback.
     848 *                          callback.  Can be NULL (not recommended though).
    849849 * @param   pszDesc         The type description.
    850850 * @param   hType           The handle to do ring-0 callback registrations for.
     
    859859     */
    860860    AssertPtrReturn(pfnHandler, VERR_INVALID_POINTER);
    861     AssertPtrReturn(pfnPfHandler, VERR_INVALID_POINTER);
     861    AssertPtrNullReturn(pfnPfHandler, VERR_INVALID_POINTER);
     862
    862863    AssertPtrReturn(pszDesc, VERR_INVALID_POINTER);
    863864    AssertReturn(   enmKind == PGMPHYSHANDLERKIND_WRITE
  • trunk/src/VBox/VMM/include/PGMInternal.h

    r93716 r93735  
    512512    /** Pointer to the ring-0 callback function. */
    513513    R0PTRTYPE(PFNPGMPHYSHANDLER)        pfnHandler;
    514     /** Pointer to the ring-9 callback function for \#PFs. */
     514    /** Pointer to the ring-0 callback function for \#PFs, can be NULL. */
    515515    R0PTRTYPE(PFNPGMRZPHYSPFHANDLER)    pfnPfHandler;
    516516    /** Description / Name. For easing debugging. */
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