vfio/mlx5: Enforce PRE_COPY support
authorYishai Hadas <yishaih@nvidia.com>
Wed, 6 Mar 2024 10:56:24 +0000 (12:56 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 11 Mar 2024 18:02:59 +0000 (12:02 -0600)
commit821b8f6bf84897aeceb230ff4d446b8aa5336acd
tree27dc1ac028a13ba6f732c28aec9df706bfddb12c
parent626f534d774caaccd6861fbccee45a1a6a8781b3
vfio/mlx5: Enforce PRE_COPY support

Enable live migration only once the firmware supports PRE_COPY.

PRE_COPY has been supported by the firmware for a long time already [1]
and is required to achieve a low downtime upon live migration.

This lets us clean up some old code that is not applicable those days
while PRE_COPY is fully supported by the firmware.

[1] The minimum firmware version that supports PRE_COPY is 28.36.1010,
it was released in January 2023.

No firmware without PRE_COPY support ever available to users.

Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Link: https://lore.kernel.org/r/20240306105624.114830-1-yishaih@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/mlx5/cmd.c
drivers/vfio/pci/mlx5/cmd.h
drivers/vfio/pci/mlx5/main.c