kvm: x86: Fix kvm_arch_fixup_msi_route for remap-less case
commit0ea1472dc50a9488e87c4d19329c7d5c63eb7076
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 27 Aug 2018 08:47:51 +0000 (27 10:47 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Oct 2018 16:47:55 +0000 (2 18:47 +0200)
tree08376e81e4dd7fe0d4a14417c60a7c279398fc48
parent3829640049cf516d229620e5919b0ab66fd6ac86
kvm: x86: Fix kvm_arch_fixup_msi_route for remap-less case

The AMD IOMMU does not (yet) support interrupt remapping. But
kvm_arch_fixup_msi_route assumes that all implementations do and crashes
when the AMD IOMMU is used in KVM mode.

Fixes: 8b5ed7dffa1f ("intel_iommu: add support for split irqchip")
Reported-by: Christopher Goldsworthy <christopher.goldsworthy@outlook.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Message-Id: <48ae78d8-58ec-8813-8680-6f407ea46041@siemens.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/kvm.c