summaryrefslogtreecommitdiffstats
path: root/drivers/vhost
diff options
context:
space:
mode:
authorEli Cohen <elic@nvidia.com>2020-09-08 15:33:46 +0300
committerMichael S. Tsirkin <mst@redhat.com>2020-10-21 10:36:54 -0400
commit1897f0b618b0af0eb9dca709ab6bdf9ef1969ef7 (patch)
tree4a0437ecca09b0ed1e9fa5a3a46aa1fc96445fdf /drivers/vhost
parent4ce1cf7b02ed691acf0d9c664579cb6e52b1687b (diff)
downloadlinux-1897f0b618b0af0eb9dca709ab6bdf9ef1969ef7.tar.bz2
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: 1a86b377aa21 ("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>
Diffstat (limited to 'drivers/vhost')
0 files changed, 0 insertions, 0 deletions