summary refs log tree commit diff stats
path: root/include/hw/vfio/vfio-container-base.h
diff options
context:
space:
mode:
authorSteve Sistare <steven.sistare@oracle.com>2025-05-29 12:24:03 -0700
committerCédric Le Goater <clg@redhat.com>2025-06-05 10:40:38 +0200
commit2372f8d94ae27b1b8a1c5704c668baabd48d1c99 (patch)
treee1009b8d5a8d6b7b968f86d0a838f66cbc676e89 /include/hw/vfio/vfio-container-base.h
parent9942c711835f06805e82fbe9d1da98f6ff7b9311 (diff)
downloadfocaccia-qemu-2372f8d94ae27b1b8a1c5704c668baabd48d1c99.tar.gz
focaccia-qemu-2372f8d94ae27b1b8a1c5704c668baabd48d1c99.zip
vfio: vfio_find_ram_discard_listener
Define vfio_find_ram_discard_listener as a subroutine so additional calls to
it may be added in a subsequent patch.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Link: https://lore.kernel.org/qemu-devel/1748546679-154091-8-git-send-email-steven.sistare@oracle.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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/vfio/vfio-container-base.h b/include/hw/vfio/vfio-container-base.h
index 3feb773e5f..9d37f86115 100644
--- a/include/hw/vfio/vfio-container-base.h
+++ b/include/hw/vfio/vfio-container-base.h
@@ -253,4 +253,7 @@ struct VFIOIOMMUClass {
     void (*release)(VFIOContainerBase *bcontainer);
 };
 
+VFIORamDiscardListener *vfio_find_ram_discard_listener(
+    VFIOContainerBase *bcontainer, MemoryRegionSection *section);
+
 #endif /* HW_VFIO_VFIO_CONTAINER_BASE_H */