search for: nodes_cover_memory

Displaying 2 results from an estimated 2 matches for "nodes_cover_memory".

2009 Aug 28
2
[PATCH] x86/numa: fix c/s 20120 (Fix SRAT check for discontig memory)
...to deal with both, though, and I hope this change makes it so. Signed-off-by: Jan Beulich <jbeulich@novell.com> --- 2009-08-24.orig/xen/arch/x86/srat.c 2009-08-28 00:00:00.000000000 +0200 +++ 2009-08-24/xen/arch/x86/srat.c 2009-08-28 12:12:40.000000000 +0200 @@ -249,15 +249,23 @@ static int nodes_cover_memory(void) start = e820.map[i].addr; end = e820.map[i].addr + e820.map[i].size - 1; - found = 0; - for_each_node_mask(j, nodes_parsed) { - if (start >= nodes[j].start && end <= nodes[j].end) { - found = 1; - break; - } - } + do { + found = 0; + for_each_node_mask(...
2009 Aug 24
0
[PATCH] Fix SRAT check for discontig memory
...b/xen/arch/x86/srat.c Mon Aug 24 15:19:34 2009 -0600 @@ -17,6 +17,7 @@ #include <xen/nodemask.h> #include <xen/acpi.h> #include <xen/numa.h> +#include <asm/e820.h> #include <asm/page.h> static struct acpi_table_slit *acpi_slit; @@ -236,23 +237,31 @@ static int nodes_cover_memory(void) { int i; - u64 pxmram, e820ram; - pxmram = 0; - for_each_node_mask(i, nodes_parsed) { - u64 s = nodes[i].start >> PAGE_SHIFT; - u64 e = nodes[i].end >> PAGE_SHIFT; - pxmram += e - s; - } + for (i = 0; i < e820.nr_map; i++) { + int j, found; + unsigned long long start,...