aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-06-12 14:05:33 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-06-19 12:42:02 +0200
commitec40be993b7b12b3f338ccf79f7eaaef6d1870f7 (patch)
tree2d711a263acba07eebcb70035cd4b7a666f3024b /system
parent80ce0d5874d60dac171ec9395a2aaba91a25c1c7 (diff)
downloadqemu-ec40be993b7b12b3f338ccf79f7eaaef6d1870f7.zip
qemu-ec40be993b7b12b3f338ccf79f7eaaef6d1870f7.tar.gz
qemu-ec40be993b7b12b3f338ccf79f7eaaef6d1870f7.tar.bz2
memory: Constify IOMMUTLBEvent in memory_region_notify_iommu_one()
@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-2-philmd@linaro.org>
Diffstat (limited to 'system')
-rw-r--r--system/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/memory.c b/system/memory.c
index 74cd73e..f3a37c9 100644
--- a/system/memory.c
+++ b/system/memory.c
@@ -2006,9 +2006,9 @@ void memory_region_unregister_iommu_notifier(MemoryRegion *mr,
}
void memory_region_notify_iommu_one(IOMMUNotifier *notifier,
- IOMMUTLBEvent *event)
+ const IOMMUTLBEvent *event)
{
- IOMMUTLBEntry *entry = &event->entry;
+ const IOMMUTLBEntry *entry = &event->entry;
hwaddr entry_end = entry->iova + entry->addr_mask;
IOMMUTLBEntry tmp = *entry;