summaryrefslogtreecommitdiff
path: root/src/VBox/VMM/PGMPool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/VMM/PGMPool.cpp')
-rw-r--r--src/VBox/VMM/PGMPool.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/VBox/VMM/PGMPool.cpp b/src/VBox/VMM/PGMPool.cpp
index 9371c92f6..22de2a627 100644
--- a/src/VBox/VMM/PGMPool.cpp
+++ b/src/VBox/VMM/PGMPool.cpp
@@ -438,18 +438,6 @@ VMMR3DECL(int) PGMR3PoolGrow(PVM pVM)
return i ? VINF_SUCCESS : VERR_NO_PAGE_MEMORY;
}
pPage->Core.Key = MMPage2Phys(pVM, pPage->pvPageR3);
- if (pPage->Core.Key == 0)
- {
- /* Physical page 0 can trigger problems with AMD-V; allocate a new one. */
- pPage->pvPageR3 = MMR3PageAllocLow(pVM);
- if (!pPage->pvPageR3)
- {
- Log(("We're out of memory!! i=%d\n", i));
- pgmUnlock(pVM);
- return i ? VINF_SUCCESS : VERR_NO_PAGE_MEMORY;
- }
- pPage->Core.Key = MMPage2Phys(pVM, pPage->pvPageR3);
- }
pPage->GCPhys = NIL_RTGCPHYS;
pPage->enmKind = PGMPOOLKIND_FREE;
pPage->idx = pPage - &pPool->aPages[0];