]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: x86/xen: Advertise and document KVM_XEN_HVM_CONFIG_EVTCHN_SEND
authorDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 9 Feb 2022 22:53:15 +0000 (22:53 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 3 Mar 2022 15:36:40 +0000 (15:36 +0000)
commit021789da6e3aaa82be2ca3b9b4d1e2d44f292e2f
treec17280c4f3197c8ca1af97c137e176ad8979ae49
parent10e920b80941c0b4c94f1f20269e3abd95250b1c
KVM: x86/xen: Advertise and document KVM_XEN_HVM_CONFIG_EVTCHN_SEND

At the end of the patch series adding this batch of event channel
acceleration features, finally add the feature bit which advertises
them and document it all.

For SCHEDOP_poll we need to wake a polling vCPU when a given port
is triggered, even when it's masked — and we want to implement that
in the kernel, for efficiency. So we want the kernel to know that it
has sole ownership of event channel delivery. Thus, we allow
userspace to make the 'promise' by setting the corresponding feature
bit in its KVM_XEN_HVM_CONFIG call. As we implement SCHEDOP_poll
bypass later, we will do so only if that promise has been made by
userspace.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Documentation/virt/kvm/api.rst
arch/x86/kvm/x86.c
arch/x86/kvm/xen.c
include/uapi/linux/kvm.h