diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-11-10 13:03:42 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-11-10 13:03:42 +0000 |
commit | fee63693e0ea23d24f239a05c0607021de02dd7f (patch) | |
tree | a51815bff41fce05290d8fb31c613e561ec4cce2 /xen/include/asm-x86/smp.h | |
parent | 66cc31ec352b38777396bd8689139e932c396e94 (diff) | |
download | xen-fee63693e0ea23d24f239a05c0607021de02dd7f.tar.gz xen-fee63693e0ea23d24f239a05c0607021de02dd7f.tar.bz2 xen-fee63693e0ea23d24f239a05c0607021de02dd7f.zip |
Hypercall to expose physical CPU information.
It also make some changes to current cpu online/offline logic:
1) Firstly, cpu online/offline will trigger a vIRQ to dom0 for status
changes notification.
2) It also add an interface to platform operation to online/offline
physical CPU. Currently the cpu online/offline interface is in sysctl,
which can't be triggered in kernel. With this change, it is possible
to trigger cpu online/offline in dom0 through sysfs interface.
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/include/asm-x86/smp.h b/xen/include/asm-x86/smp.h index f94794930e..066612c3a3 100644 --- a/xen/include/asm-x86/smp.h +++ b/xen/include/asm-x86/smp.h @@ -56,6 +56,7 @@ extern u32 cpu_2_logical_apicid[]; #define CPU_ONLINE 0x0002 /* CPU is up */ #define CPU_DEAD 0x0004 /* CPU is dead */ DECLARE_PER_CPU(int, cpu_state); +extern spinlock_t(cpu_add_remove_lock); #ifdef CONFIG_HOTPLUG_CPU #define cpu_is_offline(cpu) unlikely(!cpu_online(cpu)) |