On 4/25/2025 3:59 AM, Cédric Le Goater wrote:
On 4/24/25 08:33, Zhenzhong Duan wrote:
vfio_cpr_register_container and vfio_cpr_unregister_container are container
scoped function. Calling them for each device attaching/detaching would
corrupt CPR reboot notifier list, i.e., when two VFIO devices are attached
to same container and have same notifier registered twice.
Fixes: d9fa4223b30a ("vfio: register container for cpr")
Signed-off-by: Zhenzhong Duan <[email protected]>
---
btw: untested as I have no env with two migration capable devices,
appreciate if someone have env to help test, thanks
hw/vfio/iommufd.c | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
Applied to vfio-next.
Looks good - steve