VirtualBox

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


Ignore:
Timestamp:
Feb 14, 2022 5:06:27 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
149908
Message:

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

File:
1 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
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