Skip to content

amd_iommu fixes for 11.0-rc2

Alejandro Jimenez qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2amd_iommu: Follow root pointer before page walk and use 1-based levelshw/i386/amd_iommu.c hw/i386/amd_iommu.h+97 -460 replies
2/2amd_iommu: Reject non-decreasing NextLevel in fetch_pte()hw/i386/amd_iommu.c+4 -00 replies

Reviews trailers per patch

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

PatchDavid HoppenbrouwersSairaj Kodilkar
1/2R-b R-b
2/2R-b

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 for-11.0 0/2] amd_iommu fixes for 11.0-rc2

Hi,

Please consider these AMD vIOMMU fixes for 11.0-rc2.

This series fixes a bug in the current page walker implementation. When triggered, the issue leads to extremely slow boot or hangs and missing devices in the guest, as reported in:

https://lore.kernel.org/qemu-devel/[email protected]/

Thank you,
Alejandro

---
Also available on github:

The following changes since commit dd3ee9c63d96b223c8d41bf5d65392eb898be626:

Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging (2026-03-30 13:54:56 +0100)

are available in the Git repository at:

https://github.com/aljimenezb/qemu.git tags/amdvi-11.0-rc2-fixes-20260330

for you to fetch changes up to 9728f609a871606b272fc37226f5af30df7ac51a:

amd_iommu: Reject non-decreasing NextLevel in fetch_pte() (2026-03-30 17:23:54 +0000)

----------------------------------------------------------------
amd_iommu fixes for 11.0-rc2

- Fix hugepage mappings being reported as 4K pages during page walks
- Reject non-decreasing NextLevel values to avoid invalid page-walk loops
- Both patches should be picked when porting to stable release

----------------------------------------------------------------

Alejandro Jimenez (2):
amd_iommu: Follow root pointer before page walk and use 1-based levels
amd_iommu: Reject non-decreasing NextLevel in fetch_pte()

 hw/i386/amd_iommu.c | 136 +++++++++++++++++++++++++++++++-------------
 hw/i386/amd_iommu.h |  11 ++--
 2 files changed, 101 insertions(+), 46 deletions(-)

base-commit: dd3ee9c63d96b223c8d41bf5d65392eb898be626

Signature · 1 line
2.47.3