ia64/xen-unstable

view xen/include/xen/numa.h @ 19848:5839491bbf20

[IA64] replace MAX_VCPUS with d->max_vcpus where necessary.

don't use MAX_VCPUS, and use vcpu::max_vcpus.
The changeset of 2f9e1348aa98 introduced max_vcpus to allow more vcpus
per guest. This patch is ia64 counter part.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jun 29 11:26:05 2009 +0900 (2009-06-29)
parents 2f9e1348aa98
children
line source
1 #ifndef _XEN_NUMA_H
2 #define _XEN_NUMA_H
4 #include <xen/config.h>
5 #include <asm/numa.h>
7 #ifndef NODES_SHIFT
8 #define NODES_SHIFT 0
9 #endif
11 #define NUMA_NO_NODE 0xFF
13 #define MAX_NUMNODES (1 << NODES_SHIFT)
15 #define vcpu_to_node(v) (cpu_to_node((v)->processor))
17 #define domain_to_node(d) \
18 (((d)->vcpu != NULL && (d)->vcpu[0] != NULL) \
19 ? vcpu_to_node((d)->vcpu[0]) : NUMA_NO_NODE)
21 #endif /* _XEN_NUMA_H */