VirtualBox

Changeset 55895 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
May 17, 2015 7:42:38 PM (10 years ago)
Author:
vboxsync
Message:

Added pvUser to the raw-mode context virtual handler callbacks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pgm.h

    r55891 r55895  
    178178 *
    179179 * @returns VBox status code (appropriate for GC return).
    180  * @param   pVM         VM Handle.
    181  * @param   uErrorCode   CPU Error code.
    182  * @param   pRegFrame   Trap register frame.
    183  * @param   pvFault     The fault address (cr2).
    184  * @param   pvRange     The base address of the handled virtual range.
    185  * @param   offRange    The offset of the access into this range.
    186  *                      (If it's a EIP range this is the EIP, if not it's pvFault.)
     180 * @param   pVM             VM Handle.
     181 * @param   uErrorCode      CPU Error code (X86_TRAP_PF_XXX).
     182 * @param   pRegFrame       Trap register frame.
     183 * @param   pvFault         The fault address (cr2).
     184 * @param   pvRange         The base address of the handled virtual range.
     185 * @param   offRange        The offset of the access into this range.
     186 *                          (If it's a EIP range this is the EIP, if not it's pvFault.)
     187 * @param   pvUser          User argument.
    187188 * @todo    Add pVCpu, possibly replacing pVM.
    188189 */
    189 typedef DECLCALLBACK(int) FNPGMRCVIRTHANDLER(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, RTGCPTR pvRange, uintptr_t offRange);
     190typedef DECLCALLBACK(int) FNPGMRCVIRTPFHANDLER(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault,
     191                                               RTGCPTR pvRange, uintptr_t offRange, void *pvUser);
    190192/** Pointer to PGM access callback. */
    191 typedef FNPGMRCVIRTHANDLER *PFNPGMRCVIRTHANDLER;
     193typedef FNPGMRCVIRTPFHANDLER *PFNPGMRCVIRTPFHANDLER;
    192194
    193195/**
     
    208210 * @todo    Add pVCpu, possibly replacing pVM.
    209211 */
    210 typedef DECLCALLBACK(int) FNPGMR3VIRTHANDLER(PVM pVM, RTGCPTR GCPtr, void *pvPtr, void *pvBuf, size_t cbBuf, PGMACCESSTYPE enmAccessType, void *pvUser);
     212typedef DECLCALLBACK(int) FNPGMR3VIRTHANDLER(PVM pVM, RTGCPTR GCPtr, void *pvPtr, void *pvBuf, size_t cbBuf,
     213                                             PGMACCESSTYPE enmAccessType, void *pvUser);
    211214/** Pointer to PGM access callback. */
    212215typedef FNPGMR3VIRTHANDLER *PFNPGMR3VIRTHANDLER;
     
    218221 * @param   pVM             VM Handle.
    219222 * @param   GCPtr           The virtual address the guest has changed.
    220  */
    221 typedef DECLCALLBACK(int) FNPGMR3VIRTINVALIDATE(PVM pVM, RTGCPTR GCPtr);
     223 * @param   pvUser          User argument.
     224 */
     225typedef DECLCALLBACK(int) FNPGMR3VIRTINVALIDATE(PVM pVM, RTGCPTR GCPtr, void *pvUser);
    222226/** Pointer to PGM invalidation callback. */
    223227typedef FNPGMR3VIRTINVALIDATE *PFNPGMR3VIRTINVALIDATE;
     
    546550                                                      PFNPGMR3VIRTINVALIDATE pfnInvalidateR3,
    547551                                                      PFNPGMR3VIRTHANDLER pfnHandlerR3,
    548                                                       RCPTRTYPE(PFNPGMRCVIRTHANDLER) pfnHandlerRC,
     552                                                      RCPTRTYPE(FNPGMRCVIRTPFHANDLER) pfnPfHandlerRC,
    549553                                                      const char *pszDesc, PPGMVIRTHANDLERTYPE phType);
    550554VMMR3_INT_DECL(int) PGMR3HandlerVirtualTypeRegister(PVM pVM, PGMVIRTHANDLERKIND enmKind, bool fRelocUserRC,
    551555                                                    PFNPGMR3VIRTINVALIDATE pfnInvalidateR3,
    552556                                                    PFNPGMR3VIRTHANDLER pfnHandlerR3,
    553                                                     const char *pszHandlerRC, const char *pszModRC, const char *pszDesc,
     557                                                    const char *pszPfHandlerRC, const char *pszModRC, const char *pszDesc,
    554558                                                    PPGMVIRTHANDLERTYPE phType);
    555559VMMR3_INT_DECL(int) PGMR3HandlerVirtualRegister(PVM pVM, PVMCPU pVCpu, PGMVIRTHANDLERTYPE hType, RTGCPTR GCPtr,
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