From: CLEMENT MATHIEU--DRIF Date: Tue, 20 May 2025 07:19:00 +0000 (+0000) Subject: memory: Store user data pointer in the IOMMU notifiers X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7e94e45296d68982d448ae57e195efcf8f66649e;p=thirdparty%2Fqemu.git memory: Store user data pointer in the IOMMU notifiers This will help developers of ATS-capable devices to track a state. Signed-off-by: Clement Mathieu--Drif Message-Id: <20250520071823.764266-9-clement.mathieu--drif@eviden.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- diff --git a/include/system/memory.h b/include/system/memory.h index fbbf4cf911..fc35a0dcad 100644 --- a/include/system/memory.h +++ b/include/system/memory.h @@ -183,6 +183,7 @@ struct IOMMUNotifier { hwaddr start; hwaddr end; int iommu_idx; + void *opaque; QLIST_ENTRY(IOMMUNotifier) node; }; typedef struct IOMMUNotifier IOMMUNotifier;