linux-yocto/drivers/vfio
Longfang Liu be1e0287ac hisi_acc_vfio_pci: bugfix the problem of uninstalling driver
[ Upstream commit db6525a857 ]

In a live migration scenario. If the number of VFs at the
destination is greater than the source, the recovery operation
will fail and qemu will not be able to complete the process and
exit after shutting down the device FD.

This will cause the driver to be unable to be unloaded normally due
to abnormal reference counting of the live migration driver caused
by the abnormal closing operation of fd.

Therefore, make sure the migration file descriptor references are
always released when the device is closed.

Fixes: b0eed08590 ("hisi_acc_vfio_pci: Add support for VFIO live migration")
Signed-off-by: Longfang Liu <liulongfang@huawei.com>
Reviewed-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Link: https://lore.kernel.org/r/20250510081155.55840-5-liulongfang@huawei.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-07-10 16:05:00 +02:00
..
cdx
fsl-mc vfio/fsl-mc: Remove unused variable 'hwirq' 2024-09-03 08:42:06 -06:00
mdev vfio/mdev: Constify struct kobj_type 2024-09-06 08:20:52 -06:00
pci hisi_acc_vfio_pci: bugfix the problem of uninstalling driver 2025-07-10 16:05:00 +02:00
platform Revert "vfio/platform: check the bounds of read/write syscalls" 2025-02-21 14:01:47 +01:00
container.c
debugfs.c
device_cdev.c
group.c introduce fd_file(), convert all accessors to it. 2024-08-12 22:00:43 -04:00
iommufd.c
Kconfig
Makefile
vfio_iommu_spapr_tce.c
vfio_iommu_type1.c vfio/type1: Fix error unwind in migration dirty bitmap allocation 2025-06-19 15:31:52 +02:00
vfio_main.c
vfio.h
virqfd.c introduce fd_file(), convert all accessors to it. 2024-08-12 22:00:43 -04:00