Index: /trunk/include/VBox/mm.h
===================================================================
--- /trunk/include/VBox/mm.h	(revision 17285)
+++ /trunk/include/VBox/mm.h	(revision 17286)
@@ -86,13 +86,8 @@
 #define MM_RAM_FLAGS_DYNAMIC_ALLOC      RT_BIT(11)
 
-/** The (shifted) cRef value used to indiciate that the idx is the head of a
- * physical cross reference extent list. */
-#define MM_RAM_FLAGS_CREFS_PHYSEXT      0x3
 /** The shift used to get the page pool idx. (Apply MM_RAM_FLAGS_IDX_MASK to the result when shifting down). */
 #define MM_RAM_FLAGS_IDX_SHIFT          48
 /** The mask applied to the the page pool idx after using MM_RAM_FLAGS_IDX_SHIFT to shift it down. */
 #define MM_RAM_FLAGS_IDX_MASK           0x3fff
-/** The idx value when we're out of of extents or there are simply too many mappings of this page. */
-#define MM_RAM_FLAGS_IDX_OVERFLOWED     MM_RAM_FLAGS_IDX_MASK
 /** @} */
 
Index: /trunk/src/VBox/VMM/PGMInternal.h
===================================================================
--- /trunk/src/VBox/VMM/PGMInternal.h	(revision 17285)
+++ /trunk/src/VBox/VMM/PGMInternal.h	(revision 17286)
@@ -1978,9 +1978,8 @@
 #  error "MM_RAM_FLAGS_IDX_SHIFT - 48 != PGMPOOL_TD_IDX_SHIFT"
 # endif
+#endif
+#ifdef MM_RAM_FLAGS_IDX_MASK
 # if MM_RAM_FLAGS_IDX_MASK != PGMPOOL_TD_IDX_MASK
 #  error "MM_RAM_FLAGS_IDX_MASK != PGMPOOL_TD_IDX_MASK"
-# endif
-# if MM_RAM_FLAGS_IDX_OVERFLOWED != PGMPOOL_TD_IDX_OVERFLOWED
-#  error "MM_RAM_FLAGS_IDX_OVERFLOWED != PGMPOOL_TD_IDX_OVERFLOWED"
 # endif
 #endif
Index: /trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp
===================================================================
--- /trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp	(revision 17285)
+++ /trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp	(revision 17286)
@@ -3428,7 +3428,7 @@
         }
         else
-            u16 = PGMPOOL_TD_MAKE(PGMPOOL_TD_CREFS_PHYSEXT, MM_RAM_FLAGS_IDX_OVERFLOWED);
-    }
-    else if (u16 != PGMPOOL_TD_MAKE(PGMPOOL_TD_CREFS_PHYSEXT, MM_RAM_FLAGS_IDX_OVERFLOWED))
+            u16 = PGMPOOL_TD_MAKE(PGMPOOL_TD_CREFS_PHYSEXT, PGMPOOL_TD_IDX_OVERFLOWED);
+    }
+    else if (u16 != PGMPOOL_TD_MAKE(PGMPOOL_TD_CREFS_PHYSEXT, PGMPOOL_TD_IDX_OVERFLOWED))
     {
         /*
