linux/drivers/vdpa
Eli Cohen 1897f0b618 vdpa/mlx5: Setup driver only if VIRTIO_CONFIG_S_DRIVER_OK
set_map() is used by mlx5 vdpa to create a memory region based on the
address map passed by the iotlb argument. If we get successive calls, we
will destroy the current memory region and build another one based on
the new address mapping. We also need to setup the hardware resources
since they depend on the memory region.

If these calls happen before DRIVER_OK, It means that driver VQs may
also not been setup and we may not create them yet. In this case we want
to avoid setting up the other resources and defer this till we get
DRIVER OK.

Fixes: 1a86b377aa ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices")
Signed-off-by: Eli Cohen <elic@nvidia.com>
Link: https://lore.kernel.org/r/20200908123346.GA169007@mtl-vdi-166.wap.labs.mlnx
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2020-10-21 10:36:54 -04:00
..
ifcvf vdpa: ifcvf: free config irq in ifcvf_free_irq() 2020-08-26 08:13:59 -04:00
mlx5 vdpa/mlx5: Setup driver only if VIRTIO_CONFIG_S_DRIVER_OK 2020-10-21 10:36:54 -04:00
vdpa_sim vdpa: Fix pointer math bug in vdpasim_get_config() 2020-08-10 10:38:55 -04:00
Kconfig vdpa/mlx5: Fix dependency on MLX5_CORE 2020-10-08 16:02:00 -04:00
Makefile vdpa/mlx5: Add support library for mlx5 VDPA implementation 2020-08-05 19:00:23 -04:00
vdpa.c vdpa: remove hard coded virtq num 2020-08-05 18:39:18 -04:00