Skip to content

hw/i386: amd-iommu: add FCH stub at 00:14.0

Ankit Soni qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tests/acpi: allow q35 IVRS DSDT/IVRS blob updatestests/qtest/bios-tables-test-allowed-diff.h+2 -00 replies
2/4hw/i386: amd-iommu: add FCH stub at 00:14.0hw/i386/amd_iommu.c hw/i386/amd_iommu.h+54 -00 replies
3/4tests/qtest: amd-iommu: test FCH stub at 00:14.0tests/qtest/amd-iommu-test.c+30 -00 replies
4/4tests/acpi: update q35 IVRS expected blobstests/data/acpi/x86/q35/DSDT.ivrs tests/data/acpi/x86/q35/IVRS.ivrs tests/qtest/bios-tables-test-allowed-diff.h+0 -20 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchSairaj Kodilkar
1/4
2/4R-b
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] hw/i386: amd-iommu: add FCH stub at 00:14.0

Linux AMD IOMMU interrupt remapping needs an FCH at the IVRS southbridge IOAPIC SID. q35 leaves 00:14.0 empty, so the guest class check fails and remapping stays off.

This series puts an SMBus-class stub at 00:14.0 when amd-iommu is realized. ICH9 stays at 00:1f.x. Occupied 00:14.0 fails realize.

QEMU ACPI tests require the usual three-step blob update:

1. whitelist DSDT.ivrs and IVRS.ivrs
2. FCH stub, vmstate, add a qtest
3. new expected blobs, empty whitelist

The stub uses AMD FCH SMBus ids (1022:790b) so it looks like an FCH. Linux IOMMU only checks class. i2c-piix4 may still match the id and fail probe. That is dmesg noise, not a timer hang.

Ankit Soni (4):
tests/acpi: allow q35 IVRS DSDT/IVRS blob updates hw/i386: amd-iommu: add FCH stub at 00:14.0 tests/qtest: amd-iommu: test FCH stub at 00:14.0 tests/acpi: update q35 IVRS expected blobs

 hw/i386/amd_iommu.c               |  52 ++++++++++++++++++++++++++++++
 hw/i386/amd_iommu.h               |   2 ++
 tests/data/acpi/x86/q35/DSDT.ivrs | Bin 8445 -> 8462 bytes
 tests/data/acpi/x86/q35/IVRS.ivrs | Bin 176 -> 184 bytes
 tests/qtest/amd-iommu-test.c      |  30 +++++++++++++++++
 5 files changed, 84 insertions(+)
Signature · 1 line
2.43.0