aboutsummaryrefslogtreecommitdiff
path: root/include/exec/memory.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-06-12 14:06:20 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-06-19 12:42:02 +0200
commiteb5b2896f608d9c0dcd53375987db2377337f752 (patch)
tree369d9255f5693da50daead851a9cd618d6f6897e /include/exec/memory.h
parentec40be993b7b12b3f338ccf79f7eaaef6d1870f7 (diff)
downloadqemu-eb5b2896f608d9c0dcd53375987db2377337f752.zip
qemu-eb5b2896f608d9c0dcd53375987db2377337f752.tar.gz
qemu-eb5b2896f608d9c0dcd53375987db2377337f752.tar.bz2
memory: Constify IOMMUTLBEvent in memory_region_notify_iommu()
@event access is read-only. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Peter Xu <peterx@redhat.com> Message-Id: <20240612132532.85928-3-philmd@linaro.org>
Diffstat (limited to 'include/exec/memory.h')
-rw-r--r--include/exec/memory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/exec/memory.h b/include/exec/memory.h
index 2bf5e23..2d7c278 100644
--- a/include/exec/memory.h
+++ b/include/exec/memory.h
@@ -1837,7 +1837,7 @@ uint64_t memory_region_iommu_get_min_page_size(IOMMUMemoryRegion *iommu_mr);
*/
void memory_region_notify_iommu(IOMMUMemoryRegion *iommu_mr,
int iommu_idx,
- IOMMUTLBEvent event);
+ const IOMMUTLBEvent event);
/**
* memory_region_notify_iommu_one: notify a change in an IOMMU translation