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

David Hoppenbrouwers posted 2 patches 1 month, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260225145831.28275-1-qemu@demindiro.com
Maintainers: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>, Sairaj Kodilkar <sarunkod@amd.com>, Paolo Bonzini <pbonzini@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, Eduardo Habkost <eduardo@habkost.net>, "Michael S. Tsirkin" <mst@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
hw/i386/amd_iommu.c  | 21 ++++++++++++++++++---
hw/i386/trace-events |  4 ++++
2 files changed, 22 insertions(+), 3 deletions(-)
[PATCH 0/2] hw/i386/amd_iommu: fix incorrect page_size hugepages
Posted by David Hoppenbrouwers 1 month, 2 weeks ago
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(-)

-- 
2.52.0