mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00
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: d9b7d8b699
("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>
This commit is contained in:
parent
bc98ffdc75
commit
144227dbc4
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue