OSDN Git Service

amd_iommu: Fix APIC address check
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Thu, 21 Sep 2023 11:46:11 +0000 (20:46 +0900)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 4 Oct 2023 22:15:06 +0000 (18:15 -0400)
commit0114c4513095598cdf1cd8d7dacdfff757628121
tree6772d61fc7daefb672a6a09063cf333a86906706
parent845ec38ae1578dd2d42ff15c9979f1bf44b23418
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>
hw/i386/amd_iommu.c
hw/i386/amd_iommu.h