aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhenzhong Duan <zhenzhong.duan@intel.com>2025-06-09 19:54:33 +0800
committerCédric Le Goater <clg@redhat.com>2025-06-11 14:01:58 +0200
commit144227dbc46f82d76de065e507a256a4d723b9e4 (patch)
tree05f45e56f41c9a5de06d1a73466e2a72d5302b1a
parentbc98ffdc7577e55ab8373c579c28fe24d600c40f (diff)
downloadqemu-144227dbc46f82d76de065e507a256a4d723b9e4.zip
qemu-144227dbc46f82d76de065e507a256a4d723b9e4.tar.gz
qemu-144227dbc46f82d76de065e507a256a4d723b9e4.tar.bz2
vfio/container: Fix vfio_listener_commit()
It's wrong to call into listener_begin callback in vfio_listener_commit(). Currently this impacts vfio-user. Fixes: d9b7d8b6993b ("vfio/container: pass listener_begin/commit callbacks") Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Reviewed-by: John Levon <john.levon@nutanix.com> Link: https://lore.kernel.org/qemu-devel/20250609115433.401775-1-zhenzhong.duan@intel.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
-rw-r--r--hw/vfio/listener.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vfio/listener.c b/hw/vfio/listener.c
index 203ed03..735b5f2 100644
--- a/hw/vfio/listener.c
+++ b/hw/vfio/listener.c
@@ -437,7 +437,7 @@ static void vfio_listener_commit(MemoryListener *listener)
listener);
void (*listener_commit)(VFIOContainerBase *bcontainer);
- listener_commit = VFIO_IOMMU_GET_CLASS(bcontainer)->listener_begin;
+ listener_commit = VFIO_IOMMU_GET_CLASS(bcontainer)->listener_commit;
if (listener_commit) {
listener_commit(bcontainer);