1 #ifndef _XEN_NUMA_H 2 #define _XEN_NUMA_H 3 4 #include <asm/numa.h> 5 6 #ifndef NODES_SHIFT 7 #define NODES_SHIFT 0 8 #endif 9 10 #define NUMA_NO_NODE 0xFF 11 #define NUMA_NO_DISTANCE 0xFF 12 13 #define MAX_NUMNODES (1 << NODES_SHIFT) 14 15 #define vcpu_to_node(v) (cpu_to_node((v)->processor)) 16 17 #define domain_to_node(d) \ 18 (((d)->vcpu != NULL && (d)->vcpu[0] != NULL) \ 19 ? vcpu_to_node((d)->vcpu[0]) : NUMA_NO_NODE) 20 21 #endif /* _XEN_NUMA_H */ 22