Skip to content

amd_iommu: Fixes

Sairaj Kodilkar qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 8 repliesIn review
  2. v22 patches 7 repliesSuperseded
  3. v12 patches 7 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2hw/i386/amd_iommu: Fix device setup failure when PT is on.hw/i386/amd_iommu.c+2 -102 replies
2/2hw/i386/amd_iommu: Fix xtsup when vcpus < 255hw/i386/amd_iommu.c+8 -02 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchVasant HegdeTested-by: Alejandro Jimenez
1/2R-b
2/2T-b

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

Read the v3 thread

Cover letter [PATCH v3 0/2] amd_iommu: Fixes

Fix following two issues in the amd viommu
1. The guest fails to setup the passthrough device when for following setup because amd iommu enables the no DMA memory region even when guest is using DMA remapping mode.

-device amd-iommu,intremap=on,xtsup=on,pt=on \
-device vfio-pci,host=<DEVID> \

and guest forcing DMA remap mode e.g. 'iommu.passthrough=0'

which will cause failures from QEMU:

qemu-system-x86_64: AHCI: Failed to start DMA engine: bad command list buffer address
qemu-system-x86_64: AHCI: Failed to start FIS receive engine: bad FIS receive buffer address
qemu-system-x86_64: AHCI: Failed to start DMA engine: bad command list buffer address
qemu-system-x86_64: AHCI: Failed to start FIS receive engine: bad FIS receive buffer address
qemu-system-x86_64: AHCI: Failed to start DMA engine: bad command list buffer address

2. The guest fails to boot with xtsup=on and <= 255 vCPUs, because amd_iommu does not enable x2apic mode.

base commit 56c6e249b6988c1b6edc2dd34ebb0f1e570a1365 (v10.0.0-rc3)

Sairaj Kodilkar (1):
hw/i386/amd_iommu: Fix device setup failure when PT is on.

Vasant Hegde (1):
hw/i386/amd_iommu: Fix xtsup when vcpus < 255

 hw/i386/amd_iommu.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
Signature · 1 line
2.34.1