Changeset 93210 in vbox
- Timestamp:
- Jan 13, 2022 2:08:52 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp
r93171 r93210 3052 3052 * most likely to fail. 3053 3053 */ 3054 int rc = VINF_SUCCESS; 3055 #ifdef VBOX_WITH_PGM_NEM_MODE 3056 if (!pVM->pgm.s.fNemMode) 3057 #endif 3058 rc = MMR3AdjustFixedReservation(pVM, cPages, pszDesc); 3054 int rc = MMR3AdjustFixedReservation(pVM, cPages, pszDesc); 3059 3055 if (RT_SUCCESS(rc)) 3060 3056 { … … 3062 3058 if (RT_SUCCESS(rc)) 3063 3059 { 3064 void *pvPages;3060 void *pvPages = NULL; 3065 3061 #ifndef VBOX_WITH_LINEAR_HOST_PHYS_MEM 3066 3062 RTR0PTR pvPagesR0 = NIL_RTR0PTR; 3067 3063 #endif 3068 3069 3064 #ifdef VBOX_WITH_PGM_NEM_MODE 3070 if (!pVM->pgm.s.fNemMode) 3065 if (PGM_IS_IN_NEM_MODE(pVM)) 3066 { 3067 for (uint32_t i = 0; i < cPages; i++) 3068 { 3069 paPages[i].Phys = UINT64_C(0x0000fffffffff000); 3070 paPages[i].uReserved = 0; 3071 } 3072 rc = SUPR3PageAlloc(cPages, pVM->pgm.s.fUseLargePages ? SUP_PAGE_ALLOC_F_LARGE_PAGES : 0, &pvPages); 3073 } 3074 else 3071 3075 #endif 3072 3076 { … … 3077 3081 #endif 3078 3082 } 3079 #ifdef VBOX_WITH_PGM_NEM_MODE3080 else3081 {3082 rc = SUPR3PageAlloc(cPages, pVM->pgm.s.fUseLargePages ? SUP_PAGE_ALLOC_F_LARGE_PAGES : 0, &pvPages);3083 if (RT_SUCCESS(rc))3084 for (uint32_t i = 0; i < cPages; i++)3085 paPages[i].Phys = UINT64_C(0x0000fffffffff000);3086 }3087 #endif3088 3083 if (RT_SUCCESS(rc)) 3089 3084 {
Note:
See TracChangeset
for help on using the changeset viewer.

