summary refs log tree commit diff stats
path: root/scripts/mtest2make.py
diff options
context:
space:
mode:
authorAlejandro Jimenez <alejandro.j.jimenez@oracle.com>2025-09-19 21:35:12 +0000
committerMichael S. Tsirkin <mst@redhat.com>2025-10-05 16:13:02 -0400
commitf6b5644c90847a9a7b9d2926556e1e71c4d1c797 (patch)
tree36523ce4b908a1527d843d88059f54193e3d6b2a /scripts/mtest2make.py
parenta9721c5d80ff23a018f40cc3693678a60630c659 (diff)
downloadfocaccia-qemu-f6b5644c90847a9a7b9d2926556e1e71c4d1c797.tar.gz
focaccia-qemu-f6b5644c90847a9a7b9d2926556e1e71c4d1c797.zip
amd_iommu: Do not assume passthrough translation when DTE[TV]=0
The AMD I/O Virtualization Technology (IOMMU) Specification (see Table
8: V, TV, and GV Fields in Device Table Entry), specifies that a DTE
with V=1, TV=0 does not contain a valid address translation information.
If a request requires a table walk, the walk is terminated when this
condition is encountered.

Do not assume that addresses for a device with DTE[TV]=0 are passed
through (i.e. not remapped) and instead terminate the page table walk
early.

Fixes: d29a09ca6842 ("hw/i386: Introduce AMD IOMMU")
Signed-off-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20250919213515.917111-20-alejandro.j.jimenez@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts/mtest2make.py')
0 files changed, 0 insertions, 0 deletions