]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: x86/xen: handle PV spinlocks slowpath
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 16 Jan 2019 21:22:30 +0000 (16:22 -0500)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 3 Mar 2022 15:36:41 +0000 (15:36 +0000)
commitb7fb07470c831c15d1cccc6f07566bb1a4c9eede
tree236374c050132f550407b60437e60f7028e001fd
parent021789da6e3aaa82be2ca3b9b4d1e2d44f292e2f
KVM: x86/xen: handle PV spinlocks slowpath

Add support for SCHEDOP_poll hypercall.

This implementation is optimized for polling for a single channel, which
is what Linux does. Polling for multiple channels is not especially
efficient (and has not been tested).

PV spinlocks slow path uses this hypercall, and explicitly crash if it's
not supported.

[ dwmw2: Rework to use kvm_vcpu_halt(), not supported for 32-bit guests ]
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/xen.c
tools/testing/selftests/kvm/x86_64/xen_shinfo_test.c