Changeset 92129 in vbox
- Timestamp:
- Oct 28, 2021 9:41:23 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 147948
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/nem.h
r91848 r92129 62 62 VMMR3_INT_DECL(void) NEMR3NotifyFF(PVM pVM, PVMCPU pVCpu, uint32_t fFlags); 63 63 64 VMMR3_INT_DECL(int) NEMR3NotifyPhysRamRegister(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cb, void *pvR3 );64 VMMR3_INT_DECL(int) NEMR3NotifyPhysRamRegister(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cb, void *pvR3, uint8_t *pu2State); 65 65 VMMR3_INT_DECL(int) NEMR3NotifyPhysMmioExMapEarly(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cb, uint32_t fFlags, 66 66 void *pvRam, void *pvMmio2, uint8_t *pu2State); -
trunk/src/VBox/VMM/VMMR3/NEMR3Native-win.cpp
r92120 r92129 1972 1972 1973 1973 1974 VMMR3_INT_DECL(int) NEMR3NotifyPhysRamRegister(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cb, void *pvR3 )1974 VMMR3_INT_DECL(int) NEMR3NotifyPhysRamRegister(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cb, void *pvR3, uint8_t *pu2State) 1975 1975 { 1976 1976 Log5(("NEMR3NotifyPhysRamRegister: %RGp LB %RGp, pvR3=%p\n", GCPhys, cb, pvR3)); 1977 *pu2State = UINT8_MAX; 1977 1978 #if !defined(NEM_WIN_USE_HYPERCALLS_FOR_PAGES) && defined(VBOX_WITH_PGM_NEM_MODE) 1978 1979 if (pvR3) … … 1981 1982 WHvMapGpaRangeFlagRead | WHvMapGpaRangeFlagWrite | WHvMapGpaRangeFlagExecute); 1982 1983 if (SUCCEEDED(hrc)) 1983 { /* likely */ }1984 *pu2State = NEM_WIN_PAGE_STATE_WRITABLE; 1984 1985 else 1985 1986 { -
trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp
r92117 r92129 1761 1761 if (VM_IS_NEM_ENABLED(pVM)) 1762 1762 { 1763 int rc = NEMR3NotifyPhysRamRegister(pVM, GCPhys, pNew->cb, pNew->pvR3); 1764 if (RT_FAILURE(rc)) 1763 uint8_t u2State = UINT8_MAX; 1764 int rc = NEMR3NotifyPhysRamRegister(pVM, GCPhys, pNew->cb, pNew->pvR3, &u2State); 1765 if (RT_SUCCESS(rc)) 1766 { 1767 if (u2State != UINT8_MAX) 1768 pgmPhysSetNemStateForPages(&pNew->aPages[0], cPages, u2State); 1769 } 1770 else 1765 1771 pgmR3PhysUnlinkRamRange2(pVM, pNew, pPrev); 1766 1772 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.