]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: x86/xen: Support direct injection of event channel events
authorDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 7 Feb 2022 14:15:31 +0000 (14:15 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 3 Mar 2022 15:17:27 +0000 (15:17 +0000)
commitfa7aa5c09e3a9fd27747ebf0bb9c4555d428395a
tree9a1d34f2557c932c286819f8b21cb19e67aa7e89
parentc8265d6d6fd914f42c39556d57804afdacb33f9d
KVM: x86/xen: Support direct injection of event channel events

This adds a KVM_XEN_HVM_EVTCHN_SEND ioctl which allows direct injection
of events given an explicit { vcpu, port, priority } in precisely the
same form that those fields are given in the IRQ routing table.

Userspace is currently able to inject 2-level events purely by setting
the bits in the shared_info and vcpu_info, but FIFO event channels are
harder to deal with; we will need the kernel to take sole ownership of
delivery when we support those.

A patch advertising this feature with a new bit in the KVM_CAP_XEN_HVM
ioctl will be added in a subsequent patch.

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