Skip to content

Emulated AMD IOMMU cleanup and fixes

Sairaj Kodilkar qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 5 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2amd_iommu: Use correct DTE field for interrupt passthroughhw/i386/amd_iommu.c+3 -30 replies
2/2amd_iommu: Use correct bitmask to set capability BARhw/i386/amd_iommu.c hw/i386/amd_iommu.h+3 -30 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchVasant Hegde
1/2R-b
2/2R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/2] Emulated AMD IOMMU cleanup and fixes

This series provides few bug fixes for emulated AMD IOMMU. The series is based on top of qemu upstream master commit d922088eb4ba.

Patch 1: The code was using wrong DTE field to determine interrupt passthrough.
Hence replaced it with correct field according to [1].

Patch 2: Current code sets the PCI capability BAR low and high to the
lower and upper 16 bits of AMDVI_BASE_ADDR respectively, which is wrong. Instead use 32 bit mask to set the PCI capability BAR low and high.
The guest IOMMU driver works with current qemu code because it uses base address from the IVRS table and not the one provided by PCI capability.

Sairaj Kodilkar (2):
amd_iommu: Use correct DTE field for interrupt passthrough
amd_iommu: Use correct bitmask to set capability BAR

 hw/i386/amd_iommu.c | 10 +++++-----
 hw/i386/amd_iommu.h |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)
Signature · 1 line
2.34.1