vhost: factor out IOTLB
authorJason Wang <jasowang@redhat.com>
Thu, 26 Mar 2020 14:01:19 +0000 (22:01 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 1 Apr 2020 16:06:26 +0000 (12:06 -0400)
commit0bbe30668d89ec8a309f28ced6d092c90fb23e8c
tree5d37d0d182c340f78fc7b1ea8c036e2ecf2cc1a5
parent792a4f2ed24fcdf0a1956e84fe2a71ada318ba7c
vhost: factor out IOTLB

This patch factors out IOTLB into a dedicated module in order to be
reused by other modules like vringh. User may choose to enable the
automatic retiring by specifying VHOST_IOTLB_FLAG_RETIRE flag to fit
for the case of vhost device IOTLB implementation.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20200326140125.19794-4-jasowang@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
MAINTAINERS
drivers/vhost/Kconfig
drivers/vhost/Makefile
drivers/vhost/iotlb.c [new file with mode: 0644]
drivers/vhost/net.c
drivers/vhost/vhost.c
drivers/vhost/vhost.h
include/linux/vhost_iotlb.h [new file with mode: 0644]