]> 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>
Mon, 28 Feb 2022 19:42:44 +0000 (19:42 +0000)
commit19903ff4533ceece5e40b2f63e4c16ace26ab0de
tree49cceea5cb823671f57b6382373ed1e0a6966a28
parent7de7f8fb4894b6e50931a824c5c9c028877c3634
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