]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: disable PV spinlocks on HVM
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 6 Sep 2011 16:41:47 +0000 (17:41 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 12 Sep 2011 20:25:21 +0000 (16:25 -0400)
commit18b56428e2eb284dd4ca1a448d9f461b228b3191
treedc586ba0ff5f2c4fa884b059341aba79c685d2fd
parente3641ba6bff8400c9c3316bb234fbf20071c93f2
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>
arch/x86/xen/smp.c