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>
Showing
- arch/x86/xen/smp.c 48 additions, 12 deletionsarch/x86/xen/smp.c
- arch/x86/xen/spinlock.c 5 additions, 0 deletionsarch/x86/xen/spinlock.c
- arch/x86/xen/time.c 8 additions, 0 deletionsarch/x86/xen/time.c
- arch/x86/xen/xen-ops.h 6 additions, 0 deletionsarch/x86/xen/xen-ops.h
- drivers/xen/Makefile 1 addition, 1 deletiondrivers/xen/Makefile
- drivers/xen/cpu_hotplug.c 90 additions, 0 deletionsdrivers/xen/cpu_hotplug.c
- drivers/xen/events.c 4 additions, 0 deletionsdrivers/xen/events.c
Loading
Please register or sign in to comment