Re: [PATCH vfio 01/13] vfio: Add an option to get migration data size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/11/2022 19:06, Jason Gunthorpe wrote:
On Sun, Nov 06, 2022 at 07:46:18PM +0200, Yishai Hadas wrote:
Add an option to get migration data size by introducing a new migration
feature named VFIO_DEVICE_FEATURE_MIG_DATA_SIZE.

Upon VFIO_DEVICE_FEATURE_GET the estimated data length that will be
required to complete STOP_COPY is returned.

This option may better enable user space to consider before moving to
STOP_COPY whether it can meet the downtime SLA based on the returned
data.

The patch also includes the implementation for mlx5 and hisi for this
new option to make it feature complete for the existing drivers in this
area.

Signed-off-by: Yishai Hadas <yishaih@xxxxxxxxxx>
---
  .../vfio/pci/hisilicon/hisi_acc_vfio_pci.c    |  9 ++++++
  drivers/vfio/pci/mlx5/main.c                  | 18 +++++++++++
  drivers/vfio/pci/vfio_pci_core.c              |  3 +-
  drivers/vfio/vfio_main.c                      | 32 +++++++++++++++++++
  include/linux/vfio.h                          |  5 +++
  include/uapi/linux/vfio.h                     | 13 ++++++++
  6 files changed, 79 insertions(+), 1 deletion(-)
Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>

Jason

Alex,

Are we fine with taking the first 2 patches from this series ?

For this one we have reviewed-by from Jason and Longfang Liu, the next patch has also a reviewed-by Jason and is very simple.

Please let me know if you want me to send them separately outside of this pre_copy series and add the mentioned reviewed-by or that you can just collect them out from the list by yourself.

Thanks,

Yishai





[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux