Displaying 1 result from an estimated 1 matches for "setup_compat_m2p_table".
2012 Apr 25
0
[PATCH] xen: Fix memory hotplug epfn upper limit test for updating the compat M2P table
...d of the maximum page frame number that the RDWR_COMPAT_MPT table can map.
Signed-off-by: Malcolm Crossley <malcolm.crossley@citrix.com>
diff -r 274e5accd62d -r 8b1e0a2ccd7f xen/arch/x86/x86_64/mm.c
--- a/xen/arch/x86/x86_64/mm.c
+++ b/xen/arch/x86/x86_64/mm.c
@@ -454,7 +454,7 @@ static int setup_compat_m2p_table(struct
     if   ((smap > ((RDWR_COMPAT_MPT_VIRT_END - RDWR_COMPAT_MPT_VIRT_START) >> 2)) )
         return 0;
 
-    if (epfn > (RDWR_COMPAT_MPT_VIRT_END - RDWR_COMPAT_MPT_VIRT_START))
+    if ( epfn > ((RDWR_COMPAT_MPT_VIRT_END - RDWR_COMPAT_MPT_VIRT_START) >> 2) )
         e...