hw/xen: Implement EVTCHNOP_unmask
commit190cc3c0edd60876150959ee9f242363e40d168e
authorDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 13 Dec 2022 17:20:46 +0000 (13 17:20 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 1 Mar 2023 08:22:50 +0000 (1 08:22 +0000)
treec434efc7d91f64ef1185e5c6fb403d938ea3f9a1
parent83eb5811342b4e48544ab79dd92a0bb1a2a2cbfb
hw/xen: Implement EVTCHNOP_unmask

This finally comes with a mechanism for actually injecting events into
the guest vCPU, with all the atomic-test-and-set that's involved in
setting the bit in the shinfo, then the index in the vcpu_info, and
injecting either the lapic vector as MSI, or letting KVM inject the
bare vector.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
hw/i386/kvm/xen_evtchn.c
hw/i386/kvm/xen_evtchn.h
target/i386/kvm/xen-emu.c