[0/4] hisi_acc_vfio_pci: Add PRE_COPY migration feature support

Message ID 20221123113236.896-1-shameerali.kolothum.thodi@huawei.com
Headers
Series hisi_acc_vfio_pci: Add PRE_COPY migration feature support |

Message

Shameerali Kolothum Thodi Nov. 23, 2022, 11:32 a.m. UTC
  Hi,

The optional PRE_COPY state support for migration feature is introduced
by this series here[1](Thanks for that!). This is something HiSilicon
ACC driver can make use for early dev compatibility checks and have
made an attempt in the past here[2].

Adding this will speed up reporting the compatibility error early in
the migration process without the need to wait for complete data
transfer. This is sanity tested on a HiSilicon Platform.

Please take a look.

Regards,
Shameer

1.https://lore.kernel.org/all/20221106174630.25909-1-yishaih@nvidia.com/
2.https://lore.kernel.org/kvm/20220302172903.1995-8-shameerali.kolothum.thodi@huawei.com/

Shameer Kolothum (4):
  hisi_acc_vfio_pci: Add support for precopy IOCTL
  hisi_acc_vfio_pci: Introduce support for PRE_COPY state transitions
  hisi_acc_vfio_pci: Move the dev compatibility tests for early check
  hisi_acc_vfio_pci: Enable PRE_COPY flag

 .../vfio/pci/hisilicon/hisi_acc_vfio_pci.c    | 147 ++++++++++++++++--
 .../vfio/pci/hisilicon/hisi_acc_vfio_pci.h    |   2 +
 2 files changed, 133 insertions(+), 16 deletions(-)
  

Comments

Alex Williamson Dec. 6, 2022, 9:49 p.m. UTC | #1
On Wed, 23 Nov 2022 11:32:32 +0000
Shameer Kolothum <shameerali.kolothum.thodi@huawei.com> wrote:

> Hi,
> 
> The optional PRE_COPY state support for migration feature is introduced
> by this series here[1](Thanks for that!). This is something HiSilicon
> ACC driver can make use for early dev compatibility checks and have
> made an attempt in the past here[2].
> 
> Adding this will speed up reporting the compatibility error early in
> the migration process without the need to wait for complete data
> transfer. This is sanity tested on a HiSilicon Platform.
> 
> Please take a look.
> 
> Regards,
> Shameer
> 
> 1.https://lore.kernel.org/all/20221106174630.25909-1-yishaih@nvidia.com/
> 2.https://lore.kernel.org/kvm/20220302172903.1995-8-shameerali.kolothum.thodi@huawei.com/
> 
> Shameer Kolothum (4):
>   hisi_acc_vfio_pci: Add support for precopy IOCTL
>   hisi_acc_vfio_pci: Introduce support for PRE_COPY state transitions
>   hisi_acc_vfio_pci: Move the dev compatibility tests for early check
>   hisi_acc_vfio_pci: Enable PRE_COPY flag
> 
>  .../vfio/pci/hisilicon/hisi_acc_vfio_pci.c    | 147 ++++++++++++++++--
>  .../vfio/pci/hisilicon/hisi_acc_vfio_pci.h    |   2 +
>  2 files changed, 133 insertions(+), 16 deletions(-)

Applied to vfio next branch for v6.2.  Thanks,

Alex