[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [RFC PATCH v2 17/25] ARM: NUMA: Add fallback on NUMA failure



From: Vijaya Kumar K <Vijaya.Kumar@xxxxxxxxxx>

On NUMA initialization failure, reset all the
NUMA structures to emulate as single node.

Signed-off-by: Vijaya Kumar <Vijaya.Kumar@xxxxxxxxxx>
---
 xen/arch/arm/numa/numa.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/xen/arch/arm/numa/numa.c b/xen/arch/arm/numa/numa.c
index 7583a40..891d304 100644
--- a/xen/arch/arm/numa/numa.c
+++ b/xen/arch/arm/numa/numa.c
@@ -22,6 +22,7 @@
 #include <xen/numa.h>
 #include <asm/acpi.h>
 #include <xen/errno.h>
+#include <xen/pfn.h>
 
 static uint8_t (*node_distance_fn)(nodeid_t a, nodeid_t b);
 
@@ -164,7 +165,12 @@ void __init numa_init(void)
     if ( !ret )
         ret = numa_initmem_init(ram_start, ram_end);
 
+    if ( !ret )
+        return;
+
 no_numa:
+    numa_dummy_init(PFN_UP(ram_start),PFN_DOWN(ram_end));
+
     return;
 }
 
-- 
2.7.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.