VirtualBox

Changeset 70956 in vbox for trunk


Ignore:
Timestamp:
Feb 10, 2018 8:21:58 PM (7 years ago)
Author:
vboxsync
Message:

NEM: Working on PGM notifications. bugref:9044

File:
1 edited

Legend:

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

    r70947 r70956  
    2929#include <VBox/types.h>
    3030#include <VBox/vmm/vmapi.h>
     31#include <VBox/vmm/pgm.h>
    3132
    3233
     
    3839 */
    3940
    40 /** @defgroup grp_hm_r3    The HM ring-3 Context API
     41/** @defgroup grp_nem_r3   The NEM ring-3 Context API
    4142 * @{
    4243 */
    4344VMMR3_INT_DECL(int)  NEMR3InitConfig(PVM pVM);
    44 VMMR3_INT_DECL(int)  NEMR3Init(PVM pVM, bool fFallback, bool fHMForced);
     45VMMR3_INT_DECL(int)  NEMR3Init(PVM pVM, bool fFallback, bool fForced);
    4546VMMR3_INT_DECL(int)  NEMR3InitAfterCPUM(PVM pVM);
    4647#ifdef IN_RING3
     
    5051VMMR3_INT_DECL(void) NEMR3Reset(PVM pVM);
    5152VMMR3_INT_DECL(void) NEMR3ResetCpu(PVMCPU pVCpu);
     53
     54VMMR3_INT_DECL(int)  NEMR3NotifyPhysRamRegister(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cb);
     55VMMR3_INT_DECL(int)  NEMR3NotifyPhysMmioExMap(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cb, uint32_t fFlags);
     56VMMR3_INT_DECL(int)  NEMR3NotifyPhysMmioExUnmap(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cb, uint32_t fFlags);
     57/** @name Flags for NEMR3NotifyPhysMmioExMap and NEMR3NotifyPhysMmioExUnmap.
     58 * @{ */
     59/** Set if it's MMIO2 being mapped or unmapped. */
     60#define NEM_NOTIFY_PHYS_MMIO_EX_F_MMIO2     RT_BIT(0)
     61/** Set if the range is replacing RAM rather that unused space. */
     62#define NEM_NOTIFY_PHYS_MMIO_EX_F_REPLACE   RT_BIT(1)
     63/** @} */
     64
     65VMMR3_INT_DECL(int)  NEMR3NotifyPhysRomRegisterEarly(PVM pVM, RTGCPHYS GCPhys, RTUINT cb, uint32_t fFlags);
     66VMMR3_INT_DECL(int)  NEMR3NotifyPhysRomRegisterLate(PVM pVM, RTGCPHYS GCPhys, RTUINT cb, uint32_t fFlags);
     67/** @name Flags for NEMR3NotifyPhysRomRegisterEarly and NEMR3NotifyPhysRomRegisterLate.
     68 * @{ */
     69/** Set if the range is replacing RAM rather that unused space. */
     70#define NEM_NOTIFY_PHYS_ROM_F_REPLACE       RT_BIT(1)
     71/** Set if it's MMIO2 being mapped or unmapped. */
     72#define NEM_NOTIFY_PHYS_ROM_F_SHADOW        RT_BIT(2)
     73/** @} */
     74
     75VMMR3_INT_DECL(void) NEMR3NotifySetA20(PVMCPU pVCpu, bool fEnabled);
     76/** @} */
     77
     78/** @defgroup grp_nem_hc    The NEM host context API
     79 * @{
     80 */
     81VMM_INT_DECL(void) NEMHCNotifyHandlerPhysicalRegister(PVM pVM, PGMPHYSHANDLERKIND enmKind, RTGCPHYS GCPhys, RTGCPHYS cb);
     82VMM_INT_DECL(void) NEMHCNotifyHandlerPhysicalDeregister(PVM pVM, PGMPHYSHANDLERKIND enmKind, RTGCPHYS GCPhys, RTGCPHYS cb,
     83                                                        int fRestoreAsRAM, bool fRestoreAsRAM2);
     84VMM_INT_DECL(void) NEMHCNotifyHandlerPhysicalModify(PVM pVM, PGMPHYSHANDLERKIND enmKind, RTGCPHYS GCPhysOld,
     85                                                    RTGCPHYS GCPhysNew, RTGCPHYS cb, bool fRestoreAsRAM);
    5286/** @} */
    5387
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