summaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/smp.c
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2011-09-06 17:41:47 +0100
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-09-08 13:59:06 -0400
commitf10cd522c5fbfec9ae3cc01967868c9c2401ed23 (patch)
treefbcc48f2b46934a1ea3ec9f4807e6c32b868cc9c /arch/x86/xen/smp.c
parented467e69f16e6b480e2face7bc5963834d025f91 (diff)
downloadlinux-f10cd522c5fbfec9ae3cc01967868c9c2401ed23.tar.gz
linux-f10cd522c5fbfec9ae3cc01967868c9c2401ed23.tar.bz2
linux-f10cd522c5fbfec9ae3cc01967868c9c2401ed23.zip
xen: disable PV spinlocks on HVM
PV spinlocks cannot possibly work with the current code because they are enabled after pvops patching has already been done, and because PV spinlocks use a different data structure than native spinlocks so we cannot switch between them dynamically. A spinlock that has been taken once by the native code (__ticket_spin_lock) cannot be taken by __xen_spin_lock even after it has been released. Reported-and-Tested-by: Stefan Bader <stefan.bader@canonical.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'arch/x86/xen/smp.c')
-rw-r--r--arch/x86/xen/smp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c
index d4fc6d454f8d..041d4fe9dfe4 100644
--- a/arch/x86/xen/smp.c
+++ b/arch/x86/xen/smp.c
@@ -532,7 +532,6 @@ static void __init xen_hvm_smp_prepare_cpus(unsigned int max_cpus)
WARN_ON(xen_smp_intr_init(0));
xen_init_lock_cpu(0);
- xen_init_spinlocks();
}
static int __cpuinit xen_hvm_cpu_up(unsigned int cpu)