Skip to content

Migration few enhancements

Yishai Hadas kvm 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 3 repliesIn review
  2. v22 patches 0 repliesSuperseded
  3. v12 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- Fix a typo in vfio_pci_core_register_device(), to check for both set & get 'mig_ops'.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2vfio/mlx5: Protect mlx5vf_disable_fds() upon close devicedrivers/vfio/pci/mlx5/cmd.c drivers/vfio/pci/mlx5/cmd.h drivers/vfio/pci/mlx5/main.c+12 -10 replies
2/2vfio: Split migration ops from main device opsdrivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c drivers/vfio/pci/mlx5/cmd.c drivers/vfio/pci/mlx5/cmd.h +4 more+51 -242 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchKevin Tian
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH V3 vfio 0/2] Migration few enhancements

This series includes few enhancements in the migration area and some fixes in mlx5 driver as of below.

It splits migration ops from the main device ops, this enables a driver to safely set its migration's ops only when migration is supported and leave the other code around (e.g., core, driver) clean.

Registering different structs based on the device capabilities might start to hit combinatorial explosion when we'll introduce ops for dirty logging that may be optional too.

As part of that, adapt mlx5 to this scheme and fix some issues around its migration capable usage.

V3:
- Fix a typo in vfio_pci_core_register_device(), to check for both set & get 'mig_ops'.

V2: https://lore.kernel.org/all/[email protected]/T/
- Validate ops construction and migration mandatory flags on registration as was asked by Kevin and Jason.
- As of the above move to use a single 'mig_ops' check in vfio before calling the driver.

V1: https://lore.kernel.org/all/[email protected]/
- Add a comment about the required usage of 'mig_ops' as was suggested by Alex.
- Add Kevin's Reviewed-by tag.

V0:
https://lore.kernel.org/all/[email protected]/T/

Yishai
Yishai Hadas (2):
vfio/mlx5: Protect mlx5vf_disable_fds() upon close device
vfio: Split migration ops from main device ops

 .../vfio/pci/hisilicon/hisi_acc_vfio_pci.c    | 11 +++++--
 drivers/vfio/pci/mlx5/cmd.c                   | 14 ++++++++-
 drivers/vfio/pci/mlx5/cmd.h                   |  4 ++-
 drivers/vfio/pci/mlx5/main.c                  | 11 ++++---
 drivers/vfio/pci/vfio_pci_core.c              |  7 +++++
 drivers/vfio/vfio.c                           | 11 ++++---
 include/linux/vfio.h                          | 30 ++++++++++++-------
 7 files changed, 63 insertions(+), 25 deletions(-)
Signature · 1 line
2.18.1