]> git.ipfire.org Git - thirdparty/qemu.git/commit
amd_iommu: Fix APIC address check
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Thu, 21 Sep 2023 11:46:11 +0000 (20:46 +0900)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 6 Oct 2023 12:36:37 +0000 (15:36 +0300)
commit2adbc3b1e5092db5d839c142d179cf9d24fbef04
tree58fa12e3c3332cefb1fc8c5b4199cd6a0d9fe9df
parentfe3afc06fac1a07b575de638cd82335a3bac1058
amd_iommu: Fix APIC address check

An MSI from I/O APIC may not exactly equal to APIC_DEFAULT_ADDRESS. In
fact, Windows 17763.3650 configures I/O APIC to set the dest_mode bit.
Cover the range assigned to APIC.

Fixes: 577c470f43 ("x86_iommu/amd: Prepare for interrupt remap support")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-Id: <20230921114612.40671-1-akihiko.odaki@daynix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 0114c4513095598cdf1cd8d7dacdfff757628121)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/i386/amd_iommu.c
hw/i386/amd_iommu.h