]> git.baikalelectronics.ru Git - kernel.git/commit
vdpa_sim: use max_iotlb_entries as a limit in vhost_iotlb_init
authorStefano Garzarella <sgarzare@redhat.com>
Tue, 21 Jun 2022 15:12:08 +0000 (17:12 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 11 Aug 2022 08:26:07 +0000 (04:26 -0400)
commitbd98c430a044faaa17e0ee9b82b7845510eeaf61
treed05037abfdc3de7be7fd59a10e30ad5d1da963ab
parent34bca18e748e65dc4cb808aa331bc6fdf30856c4
vdpa_sim: use max_iotlb_entries as a limit in vhost_iotlb_init

Commit 87d7f5f97681 ("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: 87d7f5f97681 ("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>
drivers/vdpa/vdpa_sim/vdpa_sim.c