• David Woodhouse's avatar
    KVM: x86/xen: Support direct injection of event channel events · 35025735
    David Woodhouse authored
    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: default avatarDavid Woodhouse <dwmw@amazon.co.uk>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    Message-Id: <20220303154127.202856-9-dwmw2@infradead.org>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    35025735
x86.c 340 KB