aboutsummaryrefslogtreecommitdiff
path: root/include/sysemu
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw@amazon.co.uk>2022-12-16 14:32:25 +0000
committerDavid Woodhouse <dwmw@amazon.co.uk>2023-03-01 08:22:50 +0000
commit27d4075dd88a3c558fdc2da13b95915c1b6c66c9 (patch)
tree44d0ef0c925b17603bdad52e2c6fc824288158c1 /include/sysemu
parent91cce756179195f0725f551a5b2922ae2abbef9f (diff)
downloadqemu-27d4075dd88a3c558fdc2da13b95915c1b6c66c9.zip
qemu-27d4075dd88a3c558fdc2da13b95915c1b6c66c9.tar.gz
qemu-27d4075dd88a3c558fdc2da13b95915c1b6c66c9.tar.bz2
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>
Diffstat (limited to 'include/sysemu')
-rw-r--r--include/sysemu/kvm_xen.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/kvm_xen.h b/include/sysemu/kvm_xen.h
index cec21c8..644c7d8 100644
--- a/include/sysemu/kvm_xen.h
+++ b/include/sysemu/kvm_xen.h
@@ -21,6 +21,8 @@
int kvm_xen_soft_reset(void);
uint32_t kvm_xen_get_caps(void);
+void *kvm_xen_get_vcpu_info_hva(uint32_t vcpu_id);
+void kvm_xen_inject_vcpu_callback_vector(uint32_t vcpu_id, int type);
#define kvm_xen_has_cap(cap) (!!(kvm_xen_get_caps() & \
KVM_XEN_HVM_CONFIG_ ## cap))