Skip to content

hw/i386/amd_iommu: fix incorrect page_size hugepages

David Hoppenbrouwers qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2hw/i386/amd_iommu.c: trace page walk in fetch_pte()hw/i386/amd_iommu.c hw/i386/trace-events+12 -00 replies
2/2hw/i386/amd_iommu.c: fix incorrect page_size for hugepageshw/i386/amd_iommu.c+10 -33 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] hw/i386/amd_iommu: fix incorrect page_size hugepages

I have observed the IOMMU using the page size for the next level instead of the current level for hugepages, e.g. using 4K for what should be 2M pages.

The issue can be observed under Linux, but only with specific settings as Linux tends to set NextLevel=7, which directly sets the page size after the walk.

David Hoppenbrouwers (2):
hw/i386/amd_iommu.c: trace page walk in fetch_pte() hw/i386/amd_iommu.c: fix incorrect page_size for hugepages

 hw/i386/amd_iommu.c  | 21 ++++++++++++++++++---
 hw/i386/trace-events |  4 ++++
 2 files changed, 22 insertions(+), 3 deletions(-)
Signature · 1 line
2.52.0