mbox series

[0/3] i386/kvm: Assume IRQ routing is always available

Message ID 20200922201922.2153598-1-ehabkost@redhat.com (mailing list archive)
Headers show
Series i386/kvm: Assume IRQ routing is always available | expand

Message

Eduardo Habkost Sept. 22, 2020, 8:19 p.m. UTC
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(-)

Comments

Paolo Bonzini Sept. 23, 2020, 12:43 p.m. UTC | #1
On 22/09/20 22:19, Eduardo Habkost wrote:
> 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(-)
> 

Acked-by: Paolo Bonzini <pbonzini@redhat.com>