mirror_ubuntu-kernels/drivers/vdpa
Stefano Garzarella bc433e5e0d vdpa_sim: cleanup kiovs in vdpasim_free()
vringh_getdesc_iotlb() allocates memory to store the kvec, that
is freed with vringh_kiov_cleanup().

vringh_getdesc_iotlb() is able to reuse a kvec previously allocated,
so in order to avoid to allocate the kvec for each request, we are
not calling vringh_kiov_cleanup() when we finished to handle a
request, but we should call it when we free the entire device.

Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/r/20210315163450.254396-8-sgarzare@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2021-05-03 04:55:53 -04:00
..
ifcvf vDPA/ifcvf: deduce VIRTIO device ID from pdev ids 2021-05-03 04:55:52 -04:00
mlx5 vdpa/mlx5: Enable user to add/delete vdpa device 2021-05-03 04:55:51 -04:00
vdpa_sim vdpa_sim: cleanup kiovs in vdpasim_free() 2021-05-03 04:55:53 -04:00
virtio_pci vp_vdpa: report doorbell address 2021-05-03 04:55:52 -04:00
Kconfig vdpa_sim: use iova module to allocate IOVA addresses 2021-05-03 04:55:52 -04:00
Makefile vdpa: introduce virtio pci driver 2021-05-03 04:55:51 -04:00
vdpa.c vdpa: Follow kdoc comment style 2021-05-03 04:55:51 -04:00