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/platform_hypercall.c | |
parent | f4cf0d5e8825b258de4964c615dbbfdae85d0b03 (diff) | |
download | xen-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/arch/x86/platform_hypercall.c')
-rw-r--r-- | xen/arch/x86/platform_hypercall.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xen/arch/x86/platform_hypercall.c b/xen/arch/x86/platform_hypercall.c index 9bde0d057f..b33cfb8392 100644 --- a/xen/arch/x86/platform_hypercall.c +++ b/xen/arch/x86/platform_hypercall.c @@ -463,6 +463,12 @@ ret_t do_platform_op(XEN_GUEST_HANDLE(xen_platform_op_t) u_xenpf_op) } break; + case XENPF_cpu_hotadd: + ret = cpu_add(op->u.cpu_add.apic_id, + op->u.cpu_add.acpi_id, + op->u.cpu_add.pxm); + break; + default: ret = -ENOSYS; break; |