]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: x86/xen: handle PV spinlocks slowpath xen-schedop-poll
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 16 Jan 2019 21:22:30 +0000 (16:22 -0500)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 8 Feb 2022 10:06:50 +0000 (10:06 +0000)
commitddfbdf1af54780c9b1e4239352f0cdb6596efea1
tree53020aabec317d13ef2b476d124ccd1111f9ddd5
parent00076f3cf6c4914564f4b58e6ba0d1707432e553
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.

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/x86.c
arch/x86/kvm/xen.c
arch/x86/kvm/xen.h
tools/testing/selftests/kvm/x86_64/xen_shinfo_test.c