]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio/container: fails mdev hotplug if add migration blocker failed
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Mon, 23 Jun 2025 10:22:33 +0000 (18:22 +0800)
committerCédric Le Goater <clg@redhat.com>
Thu, 26 Jun 2025 06:55:38 +0000 (08:55 +0200)
commitc72d6ebaadcaec1daa995d47716348e150757a51
tree94cbfaa29e2f6a6f6658002a316caaac3804d89e
parentabc6249d42f9681d5b659716434ef374c6e0edef
vfio/container: fails mdev hotplug if add migration blocker failed

It's aggressive to abort a running QEMU process when hotplug a mdev
and it fails migration blocker adding.

Fix by just failing mdev hotplug itself.

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250623102235.94877-3-zhenzhong.duan@intel.com
[ clg: Changed test on value returned by migrate_add_blocker_modes() ]
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/container.c