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
..
2021-04-02 16:13:13 -07:00
2021-03-22 09:20:06 -07:00
2021-04-23 10:19:19 -07:00
2021-02-22 10:05:12 -08:00
2021-02-22 14:27:07 -08:00
2021-02-22 09:52:55 -08:00
2021-02-28 15:48:25 -08:00
2021-02-24 10:25:37 -08:00
2021-04-09 13:01:48 -07:00
2021-03-21 10:57:35 -07:00
2021-02-25 12:23:49 -08:00
2021-04-17 20:25:33 -07:00
2021-04-18 13:23:26 -07:00
2021-04-03 10:00:53 -07:00
2021-04-03 10:42:20 -07:00
2021-02-09 12:15:07 +01:00
2021-04-09 09:58:42 -07:00
2021-05-03 04:55:51 -04:00