OSDN Git Service

i386/xen: Add support for Xen event channel delivery to vCPU
authorDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 16 Dec 2022 14:32:25 +0000 (14:32 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 1 Mar 2023 08:22:50 +0000 (08:22 +0000)
commit27d4075dd88a3c558fdc2da13b95915c1b6c66c9
tree44d0ef0c925b17603bdad52e2c6fc824288158c1
parent91cce756179195f0725f551a5b2922ae2abbef9f
i386/xen: Add support for Xen event channel delivery to vCPU

The kvm_xen_inject_vcpu_callback_vector() function will either deliver
the per-vCPU local APIC vector (as an MSI), or just kick the vCPU out
of the kernel to trigger KVM's automatic delivery of the global vector.
Support for asserting the GSI/PCI_INTX callbacks will come later.

Also add kvm_xen_get_vcpu_info_hva() which returns the vcpu_info of
a given vCPU.

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