Skip to content

Commit 9ad9c49

Browse files
jasowangmstsirkin
authored andcommitted
vringh: IOTLB support
This patch implements the third memory accessor for vringh besides current kernel and userspace accessors. This idea is to allow vringh to do the address translation through an IOTLB which is implemented via vhost_map interval tree. Users should setup and IOVA to PA mapping in this IOTLB. This allows us to: - Use vringh to access virtqueues with vIOMMU - Use vringh to implement software virtqueues for vDPA devices Signed-off-by: Jason Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 0bbe306 commit 9ad9c49

File tree

3 files changed

+435
-23
lines changed

3 files changed

+435
-23
lines changed

drivers/vhost/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ config VHOST_IOTLB
66

77
config VHOST_RING
88
tristate
9+
select VHOST_IOTLB
910
help
1011
This option is selected by any driver which needs to access
1112
the host side of a virtio ring.

0 commit comments

Comments
 (0)