diff options
author | David Woodhouse <dwmw@amazon.co.uk> | 2023-01-18 14:36:23 +0000 |
---|---|---|
committer | David Woodhouse <dwmw@amazon.co.uk> | 2023-03-01 09:09:22 +0000 |
commit | e16aff4cc2ef285d1346abcff1a1752614fa9c60 (patch) | |
tree | 729226c0513637df5b55646079a80a74bd3d89dd /include | |
parent | 6096cf7877bc6ee84e6b3b44dfe144bc8b549724 (diff) | |
download | qemu-e16aff4cc2ef285d1346abcff1a1752614fa9c60.zip qemu-e16aff4cc2ef285d1346abcff1a1752614fa9c60.tar.gz qemu-e16aff4cc2ef285d1346abcff1a1752614fa9c60.tar.bz2 |
kvm/i386: Add xen-evtchn-max-pirq property
The default number of PIRQs is set to 256 to avoid issues with 32-bit MSI
devices. Allow it to be increased if the user desires.
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/sysemu/kvm_int.h | 1 | ||||
-rw-r--r-- | include/sysemu/kvm_xen.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/kvm_int.h b/include/sysemu/kvm_int.h index 39ce4d3..a641c97 100644 --- a/include/sysemu/kvm_int.h +++ b/include/sysemu/kvm_int.h @@ -121,6 +121,7 @@ struct KVMState uint32_t xen_version; uint32_t xen_caps; uint16_t xen_gnttab_max_frames; + uint16_t xen_evtchn_max_pirq; }; void kvm_memory_listener_register(KVMState *s, KVMMemoryListener *kml, diff --git a/include/sysemu/kvm_xen.h b/include/sysemu/kvm_xen.h index b2aafaf..595abfb 100644 --- a/include/sysemu/kvm_xen.h +++ b/include/sysemu/kvm_xen.h @@ -26,6 +26,7 @@ void kvm_xen_inject_vcpu_callback_vector(uint32_t vcpu_id, int type); void kvm_xen_set_callback_asserted(void); int kvm_xen_set_vcpu_virq(uint32_t vcpu_id, uint16_t virq, uint16_t port); uint16_t kvm_xen_get_gnttab_max_frames(void); +uint16_t kvm_xen_get_evtchn_max_pirq(void); #define kvm_xen_has_cap(cap) (!!(kvm_xen_get_caps() & \ KVM_XEN_HVM_CONFIG_ ## cap)) |