OSDN Git Service

vdpa_sim: make IOTLB entries limit configurable
authorStefano Garzarella <sgarzare@redhat.com>
Tue, 15 Dec 2020 14:42:42 +0000 (15:42 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 18 Dec 2020 21:14:28 +0000 (16:14 -0500)
commit2fc0ebfa039025d88009e8f275ea8bcd177a9cd9
treeeaa9b38a879e148e0b09d245db4547f224be9615
parent423248d60d2b655321fc49eca1545f95a1bc9d6c
vdpa_sim: make IOTLB entries limit configurable

Some devices may require a higher limit for the number of IOTLB
entries, so let's make it configurable through a module parameter.

By default, it's initialized with the current limit (2048).

Suggested-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/r/20201215144256.155342-5-sgarzare@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/vdpa_sim/vdpa_sim.c