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

Eduardo Habkost posted 3 patches 3 years, 7 months ago
Test docker-quick@centos7 passed
Test docker-mingw@fedora passed
Test checkpatch passed
Test FreeBSD passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200922201922.2153598-1-ehabkost@redhat.com
Maintainers: Marcelo Tosatti <mtosatti@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Paolo Bonzini <pbonzini@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Richard Henderson <rth@twiddle.net>, Sergio Lopez <slp@redhat.com>, Eduardo Habkost <ehabkost@redhat.com>
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(-)
[PATCH 0/3] i386/kvm: Assume IRQ routing is always available
Posted by Eduardo Habkost 3 years, 7 months ago
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



Re: [PATCH 0/3] i386/kvm: Assume IRQ routing is always available
Posted by Paolo Bonzini 3 years, 7 months ago
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>