diff -r bb6eac21369e xen/arch/x86/domain.c --- a/xen/arch/x86/domain.c Thu Apr 03 12:24:57 2008 +0200 +++ b/xen/arch/x86/domain.c Thu Apr 03 15:34:52 2008 +0200 @@ -46,7 +46,7 @@ #include #include #include -#include +#include #include #ifdef CONFIG_COMPAT #include diff -r bb6eac21369e xen/arch/x86/hvm/stdvga.c --- a/xen/arch/x86/hvm/stdvga.c Thu Apr 03 12:24:57 2008 +0200 +++ b/xen/arch/x86/hvm/stdvga.c Thu Apr 03 15:34:52 2008 +0200 @@ -32,7 +32,7 @@ #include #include #include -#include +#include #define PAT(x) (x) static const uint32_t mask16[16] = { diff -r bb6eac21369e xen/arch/x86/hvm/vlapic.c --- a/xen/arch/x86/hvm/vlapic.c Thu Apr 03 12:24:57 2008 +0200 +++ b/xen/arch/x86/hvm/vlapic.c Thu Apr 03 15:34:52 2008 +0200 @@ -33,7 +33,7 @@ #include #include #include -#include +#include #include #include diff -r bb6eac21369e xen/arch/x86/mm/hap/hap.c --- a/xen/arch/x86/mm/hap/hap.c Thu Apr 03 12:24:57 2008 +0200 +++ b/xen/arch/x86/mm/hap/hap.c Thu Apr 03 15:34:52 2008 +0200 @@ -38,7 +38,7 @@ #include #include #include -#include +#include #include "private.h" diff -r bb6eac21369e xen/arch/x86/mm/paging.c --- a/xen/arch/x86/mm/paging.c Thu Apr 03 12:24:57 2008 +0200 +++ b/xen/arch/x86/mm/paging.c Thu Apr 03 15:34:52 2008 +0200 @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include #define hap_enabled(d) (is_hvm_domain(d) && (d)->arch.hvm_domain.hap_enabled) diff -r bb6eac21369e xen/arch/x86/mm/shadow/common.c --- a/xen/arch/x86/mm/shadow/common.c Thu Apr 03 12:24:57 2008 +0200 +++ b/xen/arch/x86/mm/shadow/common.c Thu Apr 03 15:34:52 2008 +0200 @@ -36,7 +36,7 @@ #include #include #include -#include +#include #include "private.h" diff -r bb6eac21369e xen/common/memory.c --- a/xen/common/memory.c Thu Apr 03 12:24:57 2008 +0200 +++ b/xen/common/memory.c Thu Apr 03 15:34:52 2008 +0200 @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include #include diff -r bb6eac21369e xen/drivers/passthrough/vtd/iommu.c --- a/xen/drivers/passthrough/vtd/iommu.c Thu Apr 03 12:24:57 2008 +0200 +++ b/xen/drivers/passthrough/vtd/iommu.c Thu Apr 03 15:34:52 2008 +0200 @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include "iommu.h" #include "dmar.h" #include "../pci-direct.h" diff -r bb6eac21369e xen/include/asm-x86/numa.h --- a/xen/include/asm-x86/numa.h Thu Apr 03 12:24:57 2008 +0200 +++ b/xen/include/asm-x86/numa.h Thu Apr 03 15:34:52 2008 +0200 @@ -4,16 +4,11 @@ #include #define NODES_SHIFT 6 -#define NUMA_NO_NODE 0xff extern unsigned char cpu_to_node[]; extern cpumask_t node_to_cpumask[]; #define cpu_to_node(cpu) (cpu_to_node[cpu]) -#define domain_to_node(domain) ((domain!=NULL && domain->vcpu[0]!=NULL)?\ - cpu_to_node[domain->vcpu[0]->processor]:\ - NUMA_NO_NODE) -#define vcpu_to_node(vcpu) (cpu_to_node[v->processor]) #define parent_node(node) (node) #define node_to_first_cpu(node) (__ffs(node_to_cpumask[node])) #define node_to_cpumask(node) (node_to_cpumask[node]) diff -r bb6eac21369e xen/include/xen/numa.h --- a/xen/include/xen/numa.h Thu Apr 03 12:24:57 2008 +0200 +++ b/xen/include/xen/numa.h Thu Apr 03 15:34:52 2008 +0200 @@ -8,6 +8,15 @@ #define NODES_SHIFT 0 #endif +#define NUMA_NO_NODE 0xFF + #define MAX_NUMNODES (1 << NODES_SHIFT) +#define domain_to_node(domain) (((domain)!=NULL && (domain)->vcpu[0]!=NULL)?\ + cpu_to_node[(domain)->vcpu[0]->processor]:\ + NUMA_NO_NODE) + +#define vcpu_to_node(v) (cpu_to_node[(v)->processor]) + + #endif /* _XEN_NUMA_H */