search for: nodes_parsed

Displaying 3 results from an estimated 3 matches for "nodes_parsed".

2009 Aug 28
2
[PATCH] x86/numa: fix c/s 20120 (Fix SRAT check for discontig memory)
...rch/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(j, nodes_parsed) + if (start < nodes[j].end + && end > nodes[j].start) { + if (start >= nodes[j].start) { +...
2009 Aug 24
0
[PATCH] Fix SRAT check for discontig memory
...> #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, end; - e820ram = max_page; - /* We seem to lose 3 pages somewhere. Allow a bit of slack. */...
2006 Sep 29
4
[PATCH 4/6] xen: export NUMA topology in physinfo hcall
This patch modifies the physinfo hcall to export NUMA CPU and Memory topology information. The new physinfo hcall is integrated into libxc and xend (xm info specifically). Included in this patch is a minor tweak to xm-test''s xm info testcase. The new fields in xm info are: nr_nodes : 4 mem_chunks : node0:0x0000000000000000-0x0000000190000000