mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
kvm: require KVM_CAP_SIGNAL_MSI
This was introduced in KVM in Linux 3.5, we can require it unconditionally in kvm_irqchip_send_msi(). However, not all architectures have to implement it so check it only in x86, the only architecture that ever had MSI injection but not KVM_CAP_SIGNAL_MSI. ARM uses it to detect the presence of the ITS emulation in the kernel, introduced in Linux 4.8. Assume that it's there and possibly fail when realizing the arm-its-kvm device. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
aacec9aee1
commit
cc5e719e2c
6 changed files with 9 additions and 108 deletions
|
@ -43,7 +43,6 @@ extern bool kvm_msi_via_irqfd_allowed;
|
|||
extern bool kvm_gsi_routing_allowed;
|
||||
extern bool kvm_gsi_direct_mapping;
|
||||
extern bool kvm_readonly_mem_allowed;
|
||||
extern bool kvm_direct_msi_allowed;
|
||||
extern bool kvm_ioeventfd_any_length_allowed;
|
||||
extern bool kvm_msi_use_devid;
|
||||
|
||||
|
@ -147,13 +146,6 @@ extern bool kvm_msi_use_devid;
|
|||
*/
|
||||
#define kvm_readonly_mem_enabled() (kvm_readonly_mem_allowed)
|
||||
|
||||
/**
|
||||
* kvm_direct_msi_enabled:
|
||||
*
|
||||
* Returns: true if KVM allows direct MSI injection.
|
||||
*/
|
||||
#define kvm_direct_msi_enabled() (kvm_direct_msi_allowed)
|
||||
|
||||
/**
|
||||
* kvm_ioeventfd_any_length_enabled:
|
||||
* Returns: true if KVM allows any length io eventfd.
|
||||
|
@ -181,7 +173,6 @@ extern bool kvm_msi_use_devid;
|
|||
#define kvm_gsi_routing_allowed() (false)
|
||||
#define kvm_gsi_direct_mapping() (false)
|
||||
#define kvm_readonly_mem_enabled() (false)
|
||||
#define kvm_direct_msi_enabled() (false)
|
||||
#define kvm_ioeventfd_any_length_enabled() (false)
|
||||
#define kvm_msi_devid_required() (false)
|
||||
|
||||
|
|
|
@ -103,7 +103,6 @@ struct KVMState
|
|||
int nr_allocated_irq_routes;
|
||||
unsigned long *used_gsi_bitmap;
|
||||
unsigned int gsi_count;
|
||||
QTAILQ_HEAD(, KVMMSIRoute) msi_hashtab[KVM_MSI_HASHTAB_SIZE];
|
||||
#endif
|
||||
KVMMemoryListener memory_listener;
|
||||
QLIST_HEAD(, KVMParkedVcpu) kvm_parked_vcpus;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue