]> git.ipfire.org Git - thirdparty/qemu.git/commit
amd_iommu: Fix the calculation for Device Table size
authorAlejandro Jimenez <alejandro.j.jimenez@oracle.com>
Tue, 17 Jun 2025 15:04:25 +0000 (15:04 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 16 Jul 2025 13:13:18 +0000 (16:13 +0300)
commit452a0cb27bf8a2c3aa98e28c24fbce12c1034fb0
treedcb916d273a58dd94b5df3d0c782bdb908a53f45
parentdc0191c7c13f1151c65834259cba85a12d5ac69f
amd_iommu: Fix the calculation for Device Table size

Correctly calculate the Device Table size using the format encoded in the
Device Table Base Address Register (MMIO Offset 0000h).

Cc: qemu-stable@nongnu.org
Fixes: d29a09ca6842 ("hw/i386: Introduce AMD IOMMU")
Signed-off-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Message-Id: <20250617150427.20585-7-alejandro.j.jimenez@oracle.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 67d3077ee403472d45794399e97c9f329242fce9)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/i386/amd_iommu.c