On 2024/10/29 16:05, Zhangfei Gao wrote:
On Tue, 29 Oct 2024 at 10:48, Yi Liu <yi.l.liu@xxxxxxxxx> wrote:
On 2024/10/29 10:35, Zhangfei Gao wrote:
VFIO migration is not supported in kernel
do you have a vfio-pci-xxx driver that suits your device? Looks
like your case failed when checking the VFIO_DEVICE_FEATURE_GET |
VFIO_DEVICE_FEATURE_MIGRATION via VFIO_DEVICE_FEATURE.
Thanks Yi for the guidance.
Yes,
ioctl VFIO_DEVICE_FEATURE with VFIO_DEVICE_FEATURE_MIGRATION fails.
Since
if (!device->mig_ops)
return -ENOTTY;
Now drivers/vfio/pci/vfio_pci.c is used, without mig_ops.
Looks like I have to use other devices like
drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c, still in check.
indeed. You need to bind your device to a variant driver named vfio-pci-xxx
which will provide the mig_ops and even dirty logging feature. Good luck.
--
Regards,
Yi Liu