search for: mlx5_vdpa_free

Displaying 5 results from an estimated 5 matches for "mlx5_vdpa_free".

2023 Jan 16
0
[PATCH 5/5] vdpa: mlx5: support per virtqueue dma device
...16 idx) > > +{ > > + struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); > > + > > + if (is_ctrl_vq_idx(mvdev, idx)) > > + return &vdev->dev; > > + > > + return mvdev->vdev.dma_dev; > > +} > > + > > static void mlx5_vdpa_free(struct vdpa_device *vdev) > > { > > struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); > > @@ -2897,6 +2907,7 @@ static const struct vdpa_config_ops mlx5_vdpa_ops > > = { > > .get_generation = mlx5_vdpa_get_generation, > > .set_map = mlx5_vdpa_set_m...
2023 Sep 09
0
[PATCH RFC v2 2/4] vdpa/mlx5: implement .reset_map driver op
...lx5_set_group_asid(struct vdpa_device *vdev, u32 group, .set_config = mlx5_vdpa_set_config, .get_generation = mlx5_vdpa_get_generation, .set_map = mlx5_vdpa_set_map, + .reset_map = mlx5_vdpa_reset_map, .set_group_asid = mlx5_set_group_asid, .get_vq_dma_dev = mlx5_get_vq_dma_dev, .free = mlx5_vdpa_free, -- 1.8.3.1
2023 Sep 09
4
[PATCH RFC v2 0/4] vdpa: decouple reset of iotlb mapping from device reset
In order to reduce needlessly high setup and teardown cost of iotlb mapping during live migration, it's crucial to decouple the vhost-vdpa iotlb abstraction from the virtio device life cycle, i.e. iotlb mappings should be left intact across virtio device reset [1]. For it to work, the on-chip IOMMU parent device should implement a separate .reset_map() operation callback to restore 1:1 DMA
2023 Sep 09
4
[PATCH RFC v3 0/4] vdpa: decouple reset of iotlb mapping from device reset
In order to reduce needlessly high setup and teardown cost of iotlb mapping during live migration, it's crucial to decouple the vhost-vdpa iotlb abstraction from the virtio device life cycle, i.e. iotlb mappings should be left intact across virtio device reset [1]. For it to work, the on-chip IOMMU parent device should implement a separate .reset_map() operation callback to restore 1:1 DMA
2020 Jul 16
0
[PATCH vhost next 10/10] vdpa/mlx5: Add VDPA driver for supported mlx5 devices
...> + mlx5_vdpa_warn(mvdev, "set map failed(%d)\n", err); > + return err; > + } > + > + if (change_map) > + return mlx5_vdpa_change_map(ndev, iotlb); Any reason for not doing this inside mlx5_handle_set_map()? > + > + return 0; > +} > + > +static void mlx5_vdpa_free(struct vdpa_device *vdev) > +{ > + /* not used */ > +} > + > +static const struct vdpa_config_ops mlx5_vdpa_ops = { > + .set_vq_address = mlx5_vdpa_set_vq_address, > + .set_vq_num = mlx5_vdpa_set_vq_num, > + .kick_vq = mlx5_vdpa_kick_vq, > + .set_vq_cb = mlx5_vdpa_set_vq_...