Re: [PATCH] iommu/amd: Skip the southbridge IOAPIC PCI class check in guests

From: Vasant Hegde

Date: Wed Dec 02 2026 - 04:51:41 EST




On 12/1/2026 1:23 PM, Wei Wang wrote:
> Linux 7.3 hangs during boot in a VMware ESXi 7.0U3 guest with the virtual
> IOMMU enabled. IVRS reports 00:14.0 as the source ID for the southbridge
> IOAPIC, but reading the PCI class at that address returns 0xffff. The PCI
> class check therefore rejects a valid mapping, causing Linux to disable
> interrupt remapping.
>
> On bare metal, the PCI class provides a sanity check that the source ID
> corresponds to a southbridge function. In a VM, the VMM typically supplies
> both the IVRS mapping and the source ID used by the emulated IOAPIC. That
> ID need not correspond to a guest-visible PCI function.
>
> Skip the PCI class check when the CPU advertises a hypervisor. The driver
> still requires a source-ID mapping for each IOAPIC. With the check skipped,
> the guest boots with interrupt remapping enabled.
>
> Fixes: 16f52863b2ec ("iommu/amd: Dynamically verify Southbridge IOAPIC via PCI config space")
> Reported-by: Artem Anisimov <artem.anisimov.255@xxxxxxxxx>
> Closes: https://lore.kernel.org/r/d5646630-9f56-4b29-b0e5-56f5052f9f75@xxxxxxxxx
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Wei Wang <wei.w.wang@xxxxxxxxxxx>

Applied. Thanks!

-Vasant