Re: [PATCH 5/5] hisi_acc_vfio_pci: bugfix live migration function without VF device driver

From: Jason Gunthorpe
Date: Mon Dec 09 2024 - 08:51:48 EST


On Fri, Dec 06, 2024 at 05:33:12PM +0800, Longfang Liu wrote:
> If the driver of the VF device is not loaded in the Guest OS,
> then perform device data migration. The migrated data address will
> be NULL.
> The live migration recovery operation on the destination side will
> access a null address value, which will cause access errors.
>
> Therefore, live migration of VMs without added VF device drivers
> does not require device data migration.
> In addition, when the queue address data obtained by the destination
> is empty, device queue recovery processing will not be performed.

This seems very strange, why can't you migrate over the null DMA addr?
Shouldn't this be fixed on the receiving side?

Jason