diff options
| author | John Levon <john.levon@nutanix.com> | 2025-05-07 16:20:19 +0100 |
|---|---|---|
| committer | Cédric Le Goater <clg@redhat.com> | 2025-05-09 12:42:28 +0200 |
| commit | d9b7d8b6993b5193480e5a972902e3e9bbc4d8a1 (patch) | |
| tree | 353ebf822b85a9debe4427a79e3668f82cb5191f /include/hw/vfio/vfio-container-base.h | |
| parent | d4e392d0a99b8018453e26f907e33b89724697a6 (diff) | |
| download | focaccia-qemu-d9b7d8b6993b5193480e5a972902e3e9bbc4d8a1.tar.gz focaccia-qemu-d9b7d8b6993b5193480e5a972902e3e9bbc4d8a1.zip | |
vfio/container: pass listener_begin/commit callbacks
The vfio-user container will later need to hook into these callbacks; set up vfio to use them, and optionally pass them through to the container. Reviewed-by: Cédric Le Goater <clg@redhat.com> Signed-off-by: John Levon <john.levon@nutanix.com> Link: https://lore.kernel.org/qemu-devel/20250507152020.1254632-15-john.levon@nutanix.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'include/hw/vfio/vfio-container-base.h')
| -rw-r--r-- | include/hw/vfio/vfio-container-base.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/vfio/vfio-container-base.h b/include/hw/vfio/vfio-container-base.h index 59f07d26e8..3d392b0fd8 100644 --- a/include/hw/vfio/vfio-container-base.h +++ b/include/hw/vfio/vfio-container-base.h @@ -117,6 +117,8 @@ struct VFIOIOMMUClass { /* basic feature */ bool (*setup)(VFIOContainerBase *bcontainer, Error **errp); + void (*listener_begin)(VFIOContainerBase *bcontainer); + void (*listener_commit)(VFIOContainerBase *bcontainer); int (*dma_map)(const VFIOContainerBase *bcontainer, hwaddr iova, ram_addr_t size, void *vaddr, bool readonly); |