xen: implement CPU hotplugging
authorAlex Nixon <alex.nixon@citrix.com>
Fri, 22 Aug 2008 10:52:15 +0000 (11:52 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 25 Aug 2008 09:25:14 +0000 (11:25 +0200)
commitd68d82afd4c88e25763b23cd9cd4974573a3706f
tree42a3fb93a5cef70db7ad01fda1ed0dc68dbe6110
parent8227dce7dc2cfdcc28ee0eadfb482a7ee77fba03
xen: implement CPU hotplugging

Note the changes from 2.6.18-xen CPU hotplugging:

A vcpu_down request from the remote admin via Xenbus both hotunplugs the
CPU, and disables it by removing it from the cpu_present map, and removing
its entry in /sys.

A vcpu_up request from the remote admin only re-enables the CPU, and does
not immediately bring the CPU up. A udev event is emitted, which can be
caught by the user if he wishes to automatically re-up CPUs when available,
or implement a more complex policy.

Signed-off-by: Alex Nixon <alex.nixon@citrix.com>
Acked-by: Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/xen/smp.c
arch/x86/xen/spinlock.c
arch/x86/xen/time.c
arch/x86/xen/xen-ops.h
drivers/xen/Makefile
drivers/xen/cpu_hotplug.c [new file with mode: 0644]
drivers/xen/events.c