]> git.proxmox.com Git - mirror_qemu.git/commit
kvm: require KVM_CAP_SIGNAL_MSI
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Oct 2023 11:24:33 +0000 (13:24 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 25 Oct 2023 15:35:14 +0000 (17:35 +0200)
commitcc5e719e2c8086c61bdd9114f42095f8d5b1b0db
treeab24f672e3e2b5a763c210624419db5b8533decb
parentaacec9aee11660471ca56afaaafe3f1fdcf431ab
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>
accel/kvm/kvm-all.c
accel/stubs/kvm-stub.c
hw/intc/arm_gicv3_its_common.c
include/sysemu/kvm.h
include/sysemu/kvm_int.h
target/i386/kvm/kvm.c