linux/drivers/vdpa/vdpa_sim
Stefano Garzarella 67f8f10c0b vdpa_sim: use max_iotlb_entries as a limit in vhost_iotlb_init
Commit bda324fd03 ("vdpasim: control virtqueue support") changed
the allocation of iotlbs calling vhost_iotlb_init() for each address
space, instead of vhost_iotlb_alloc().

With this change we forgot to use the limit we had introduced with
the `max_iotlb_entries` module parameter.

Fixes: bda324fd03 ("vdpasim: control virtqueue support")
Cc: gautam.dawar@xilinx.com
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20220621151208.189959-1-sgarzare@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Eugenio Pérez <eperezma@redhat.com>
2022-08-11 04:26:07 -04:00
..
Makefile vdpa: add vdpa simulator for block device 2021-05-03 04:55:53 -04:00
vdpa_sim_blk.c vdpa_sim_blk: set number of address spaces and virtqueue groups 2022-08-11 04:26:07 -04:00
vdpa_sim_net.c vdpasim: control virtqueue support 2022-05-31 12:45:08 -04:00
vdpa_sim.c vdpa_sim: use max_iotlb_entries as a limit in vhost_iotlb_init 2022-08-11 04:26:07 -04:00
vdpa_sim.h vdpasim: control virtqueue support 2022-05-31 12:45:08 -04:00