vdpa/mlx5: support live migration
authorMatan Azrad <matan@mellanox.com>
Sun, 2 Feb 2020 16:03:51 +0000 (16:03 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 5 Feb 2020 08:51:21 +0000 (09:51 +0100)
commit9d39e57f21acef852d5d3187d79ca5e9667f67b7
treefb63a45c35d0f0a73b3fa5c01436ce34ce2e7614
parent62c813706e41f8f6ca5672fcea0f6f0be6d905a4
vdpa/mlx5: support live migration

Add support for live migration feature by the HW:
Create a single Mkey that maps the memory address space of the
VHOST live migration log file.
Modify VIRTIO_NET_Q object and provide vhost_log_page,
dirty_bitmap_mkey, dirty_bitmap_size, dirty_bitmap_addr
and dirty_bitmap_dump_enable.
Modify VIRTIO_NET_Q object and move state to SUSPEND.
Query VIRTIO_NET_Q and get hw_available_idx and hw_used_idx.

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Maxime Coquelin <maxime.coquelin@redhat.com>
doc/guides/vdpadevs/features/mlx5.ini
drivers/vdpa/mlx5/Makefile
drivers/vdpa/mlx5/meson.build
drivers/vdpa/mlx5/mlx5_vdpa.c
drivers/vdpa/mlx5/mlx5_vdpa.h
drivers/vdpa/mlx5/mlx5_vdpa_lm.c [new file with mode: 0644]
drivers/vdpa/mlx5/mlx5_vdpa_virtq.c