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>
This commit is contained in:
parent
ec40be993b
commit
eb5b2896f6
@ -1837,7 +1837,7 @@ uint64_t memory_region_iommu_get_min_page_size(IOMMUMemoryRegion *iommu_mr);
|
|||||||
*/
|
*/
|
||||||
void memory_region_notify_iommu(IOMMUMemoryRegion *iommu_mr,
|
void memory_region_notify_iommu(IOMMUMemoryRegion *iommu_mr,
|
||||||
int iommu_idx,
|
int iommu_idx,
|
||||||
IOMMUTLBEvent event);
|
const IOMMUTLBEvent event);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* memory_region_notify_iommu_one: notify a change in an IOMMU translation
|
* memory_region_notify_iommu_one: notify a change in an IOMMU translation
|
||||||
|
@ -2052,7 +2052,7 @@ void memory_region_unmap_iommu_notifier_range(IOMMUNotifier *notifier)
|
|||||||
|
|
||||||
void memory_region_notify_iommu(IOMMUMemoryRegion *iommu_mr,
|
void memory_region_notify_iommu(IOMMUMemoryRegion *iommu_mr,
|
||||||
int iommu_idx,
|
int iommu_idx,
|
||||||
IOMMUTLBEvent event)
|
const IOMMUTLBEvent event)
|
||||||
{
|
{
|
||||||
IOMMUNotifier *iommu_notifier;
|
IOMMUNotifier *iommu_notifier;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user