]> 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>
Sat, 21 Oct 2023 11:05:14 +0000 (14:05 +0300)
commit85c27e5b372ad90931374f080045608275df3645
treebf76e6545b3a50d8c02324474d7e1fcd26c192b5
parent24d5b718847801e561aa97b1c21694b37c864676
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