aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/smp.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-11-12 11:43:21 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-11-12 11:43:21 +0000
commitc1100c28edad0c4494bba80f7b2da1f573d28d44 (patch)
tree7b9f3008aa467e64ed8ed5f7c8f3a33624a8a30c /xen/include/asm-x86/smp.h
parentf4cf0d5e8825b258de4964c615dbbfdae85d0b03 (diff)
downloadxen-c1100c28edad0c4494bba80f7b2da1f573d28d44.tar.gz
xen-c1100c28edad0c4494bba80f7b2da1f573d28d44.tar.bz2
xen-c1100c28edad0c4494bba80f7b2da1f573d28d44.zip
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/include/asm-x86/smp.h')
-rw-r--r--xen/include/asm-x86/smp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/include/asm-x86/smp.h b/xen/include/asm-x86/smp.h
index 066612c3a3..515cc9a1e0 100644
--- a/xen/include/asm-x86/smp.h
+++ b/xen/include/asm-x86/smp.h
@@ -66,6 +66,8 @@ extern void cpu_exit_clear(void);
extern void cpu_uninit(void);
extern void disable_nonboot_cpus(void);
extern void enable_nonboot_cpus(void);
+int prefill_possible_map(void);
+int cpu_add(uint32_t apic_id, uint32_t acpi_id, uint32_t pxm);
#else
static inline int cpu_is_offline(int cpu) {return 0;}
static inline void disable_nonboot_cpus(void) {}