VirtualBox

Changeset 71152 in vbox for trunk/src/VBox/VMM/include


Ignore:
Timestamp:
Feb 28, 2018 12:36:04 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
121046
Message:

VMM/NEM/win: Refactoring... bugref:9044

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/NEMInternal.h

    r71136 r71152  
    6161} NEMWINIOCTL;
    6262
     63/** @name Windows: Our two-bit physical page state for PGMPAGE
     64 * @{ */
     65# define NEM_WIN_PAGE_STATE_NOT_SET     0
     66# define NEM_WIN_PAGE_STATE_UNMAPPED    1
     67# define NEM_WIN_PAGE_STATE_READABLE    2
     68# define NEM_WIN_PAGE_STATE_WRITABLE    3
     69/** @} */
     70
     71/** Windows: Checks if a_GCPhys is subject to the limited A20 gate emulation. */
     72# define NEM_WIN_IS_SUBJECT_TO_A20(a_GCPhys)     ((RTGCPHYS)((a_GCPhys) - _1M) < (RTGCPHYS)_64K)
     73/** Windows: Checks if a_GCPhys is relevant to the limited A20 gate emulation. */
     74# define NEM_WIN_IS_RELEVANT_TO_A20(a_GCPhys)    \
     75    ( ((RTGCPHYS)((a_GCPhys) - _1M) < (RTGCPHYS)_64K) || ((RTGCPHYS)(a_GCPhys) < (RTGCPHYS)_64K) )
     76
     77#endif /* RT_OS_WINDOWS */
     78
     79
     80/** Trick to make slickedit see the static functions in the template. */
     81#ifndef IN_SLICKEDIT
     82# define NEM_TMPL_STATIC static
     83#else
     84# define NEM_TMPL_STATIC
    6385#endif
    6486
     
    277299int     nemR3NativeNotifyPhysRomRegisterLate(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cb, uint32_t fFlags);
    278300void    nemR3NativeNotifySetA20(PVMCPU pVCpu, bool fEnabled);
    279 /* NEMHCNotifyXxxx for ring-3: */
    280 void    nemR3NativeNotifyHandlerPhysicalRegister(PVM pVM, PGMPHYSHANDLERKIND enmKind, RTGCPHYS GCPhys, RTGCPHYS cb);
    281 void    nemR3NativeNotifyHandlerPhysicalDeregister(PVM pVM, PGMPHYSHANDLERKIND enmKind, RTGCPHYS GCPhys, RTGCPHYS cb,
     301#endif
     302
     303void    nemHCNativeNotifyHandlerPhysicalRegister(PVM pVM, PGMPHYSHANDLERKIND enmKind, RTGCPHYS GCPhys, RTGCPHYS cb);
     304void    nemHCNativeNotifyHandlerPhysicalDeregister(PVM pVM, PGMPHYSHANDLERKIND enmKind, RTGCPHYS GCPhys, RTGCPHYS cb,
    282305                                                   int fRestoreAsRAM, bool fRestoreAsRAM2);
    283 void    nemR3NativeNotifyHandlerPhysicalModify(PVM pVM, PGMPHYSHANDLERKIND enmKind, RTGCPHYS GCPhysOld,
     306void    nemHCNativeNotifyHandlerPhysicalModify(PVM pVM, PGMPHYSHANDLERKIND enmKind, RTGCPHYS GCPhysOld,
    284307                                               RTGCPHYS GCPhysNew, RTGCPHYS cb, bool fRestoreAsRAM);
    285 int     nemR3NativeNotifyPhysPageAllocated(PVM pVM, RTGCPHYS GCPhys, RTHCPHYS HCPhys, uint32_t fPageProt,
     308int     nemHCNativeNotifyPhysPageAllocated(PVM pVM, RTGCPHYS GCPhys, RTHCPHYS HCPhys, uint32_t fPageProt,
    286309                                           PGMPAGETYPE enmType, uint8_t *pu2State);
    287 void    nemR3NativeNotifyPhysPageProtChanged(PVM pVM, RTGCPHYS GCPhys, RTHCPHYS HCPhys, uint32_t fPageProt,
     310void    nemHCNativeNotifyPhysPageProtChanged(PVM pVM, RTGCPHYS GCPhys, RTHCPHYS HCPhys, uint32_t fPageProt,
    288311                                             PGMPAGETYPE enmType, uint8_t *pu2State);
    289 void    nemR3NativeNotifyPhysPageChanged(PVM pVM, RTGCPHYS GCPhys, RTHCPHYS HCPhysPrev, RTHCPHYS HCPhysNew, uint32_t fPageProt,
     312void    nemHCNativeNotifyPhysPageChanged(PVM pVM, RTGCPHYS GCPhys, RTHCPHYS HCPhysPrev, RTHCPHYS HCPhysNew, uint32_t fPageProt,
    290313                                         PGMPAGETYPE enmType, uint8_t *pu2State);
    291 #endif
    292314
    293315
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