]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vfio/virtio: Enable support for virtio-block live migration
authorYishai Hadas <yishaih@nvidia.com>
Sun, 2 Mar 2025 16:27:23 +0000 (18:27 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 10 Mar 2025 20:42:50 +0000 (14:42 -0600)
commit384a530111c682d4a6c4c9ec305254c323a1379a
tree6e7b52b1c8249c7c24c61a0d4f0b9ae2e5a479a9
parent0fd06844de5d063cb384384e06a11ec7141a35d5
vfio/virtio: Enable support for virtio-block live migration

With a functional and tested backend for virtio-block live migration,
add the virtio-block device ID to the pci_device_id table.

Currently, the driver supports legacy IO functionality only for
virtio-net, and it is accounted for in specific parts of the code.

To enforce this limitation, an explicit check for virtio-net, has been
added in virtiovf_support_legacy_io(). Once a backend implements legacy
IO functionality for virtio-block, the necessary support will be added
to the driver, and this additional check should be removed.

The module description was updated accordingly.

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Link: https://lore.kernel.org/r/20250302162723.82578-1-yishaih@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/virtio/Kconfig
drivers/vfio/pci/virtio/legacy_io.c
drivers/vfio/pci/virtio/main.c