vfio/container: Fix vfio_listener_commit()
PATCH 1/1 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 <[email protected]>
--- hw/vfio/listener.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/vfio/listener.c +1 -1
@@ -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);
Signature · 1 line
2.34.1
Quoted 5 lines · Zhenzhong Duan
It's wrong to call into
listener_begincallback invfio_listener_commit(). Currently this impacts vfio-user.Fixes d9b7d8b6993b ("vfio/container: pass listener_begin/commit callbacks")Signed-off-by Zhenzhong Duan <[email protected]>
D'oh, copy-and-paste error, thanks. Somewhat impressive this didn't show up as any failure in my testing.
Reviewed-by John Levon <[email protected]>
regards
john
Cédric Le Goater
AppliedQuoted 14 lines · Zhenzhong Duan
It's wrong to call into
listener_begincallback invfio_listener_commit(). Currently this impacts vfio-user.Fixes d9b7d8b6993b ("vfio/container: pass listener_begin/commit callbacks")Signed-off-by Zhenzhong Duan <[email protected]>--- hw/vfio/listener.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/vfio/listener.c +0
-0
hw/vfio/listener.c static void vfio_listener_commit(MemoryListener *listener) · line 443
Quoted 8 lines
hw/vfio/listener.c +1
-1@@ -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);
Applied to vfio-next.
Thanks,
C.