diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-11-12 11:43:21 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-11-12 11:43:21 +0000 |
commit | c1100c28edad0c4494bba80f7b2da1f573d28d44 (patch) | |
tree | 7b9f3008aa467e64ed8ed5f7c8f3a33624a8a30c /xen/arch/x86/numa.c | |
parent | f4cf0d5e8825b258de4964c615dbbfdae85d0b03 (diff) |
Support physical CPU hot-add in xen hypervisor
This patch add CPU hot-add in system.
a) It mark all CPU as possible when booting, if CONFIG_HOTPLUG_CPU is
set. BTW, this will increase per_cpu area.
b) When a CPU is added through hypercall, the CPU will be marked as
present and offline, and the numa information is setup if numa is
supported. The CPU will be brought to online by dom0 online explicitly.
Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
Diffstat (limited to 'xen/arch/x86/numa.c')
-rw-r--r-- | xen/arch/x86/numa.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xen/arch/x86/numa.c b/xen/arch/x86/numa.c index 167373f834..6f06ac1e62 100644 --- a/xen/arch/x86/numa.c +++ b/xen/arch/x86/numa.c @@ -42,9 +42,9 @@ cpumask_t node_to_cpumask[MAX_NUMNODES] __read_mostly; nodemask_t __read_mostly node_online_map = { { [0] = 1UL } }; /* Default NUMA to off for now. acpi=on required to enable it. */ -int numa_off __initdata = 1; +int numa_off __devinitdata = 1; -int acpi_numa __initdata; +int acpi_numa __devinitdata; /* * Given a shift value, try to populate memnodemap[] @@ -53,7 +53,7 @@ int acpi_numa __initdata; * 0 if memnodmap[] too small (of shift too small) * -1 if node overlap or lost ram (shift too big) */ -static int __init +static int __devinit populate_memnodemap(const struct node *nodes, int numnodes, int shift) { int i; @@ -259,7 +259,7 @@ static __init int numa_setup(char *opt) * prior to this call, and this initialization is good enough * for the fake NUMA cases. */ -void __init init_cpu_to_node(void) +void __devinit init_cpu_to_node(void) { int i; for (i = 0; i < NR_CPUS; i++) { |