]> git.ipfire.org Git - thirdparty/qemu.git/commit
amd_iommu: Helper to decode size of page invalidation command
authorAlejandro Jimenez <alejandro.j.jimenez@oracle.com>
Fri, 19 Sep 2025 21:34:57 +0000 (21:34 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 5 Oct 2025 20:13:00 +0000 (16:13 -0400)
commite8992fee661ace87c4e871f29f5b2caab1153327
tree8261957d5d0cc40d33a65db41e06d27065d433a0
parentf76fc5d4ca54ea27597b3f0503ddb6e9030bb52d
amd_iommu: Helper to decode size of page invalidation command

The size of the region to invalidate depends on the S bit and address
encoded in the command. Add a helper to extract this information, which
will be used to sync shadow page tables in upcoming changes.

Signed-off-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20250919213515.917111-5-alejandro.j.jimenez@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/amd_iommu.c
hw/i386/amd_iommu.h