KVM_CAP_IRQ_ROUTING is available since 2019 (Linux v2.6.30), so we can safely assume it's always present and remove some runtime checks.
Eduardo Habkost (3): i386/kvm: Require KVM_CAP_IRQ_ROUTING i386/kvm: Remove IRQ routing support checks i386/kvm: Delete kvm_allows_irq0_override() target/i386/kvm_i386.h | 1 - hw/i386/fw_cfg.c | 2 +- hw/i386/kvm/apic.c | 5 ++--- hw/i386/kvm/ioapic.c | 33 ++++++++++++++++----------------- hw/i386/microvm.c | 2 +- hw/i386/pc.c | 2 +- target/i386/kvm-stub.c | 5 ----- target/i386/kvm.c | 17 +++++------------ 8 files changed, 26 insertions(+), 41 deletions(-) -- 2.26.2