vdpasim: support batch updating
authorJason Wang <jasowang@redhat.com>
Tue, 4 Aug 2020 16:20:41 +0000 (19:20 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Aug 2020 22:39:18 +0000 (18:39 -0400)
commitde91a4d0e725db34db64502fad84e8fb1026146b
tree986a26eabeb8e765e15e9fd1c2ef943255ae281e
parent25abc060d282132ea5c945392f900dca0a7e9bbb
vdpasim: support batch updating

The vDPA simulator support both set_map() and dma_map()/dma_unmap()
operations. But vhost-vdpa can only use one of them. So this patch
introduce a module parameter (batch_mapping) that let vpda_sim to
support only one of those dma operations. The batched mapping via
set_map() is enabled by default.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20200804162048.22587-6-eli@mellanox.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/vdpa_sim/vdpa_sim.c