Jason Wang c471ad0e9b vhost_net: device IOTLB support
This patches implements Device IOTLB support for vhost kernel. This is
done through:

1) switch to use dma helpers when map/unmap vrings from vhost codes
2) introduce a set of VhostOps to:
   - setting up device IOTLB request callback
   - processing device IOTLB request
   - processing device IOTLB invalidation
2) kernel support for Device IOTLB API:

- allow vhost-net to query the IOMMU IOTLB entry through eventfd
- enable the ability for qemu to update a specified mapping of vhost
- through ioctl.
- enable the ability to invalidate a specified range of iova for the
  device IOTLB of vhost through ioctl. In x86/intel_iommu case this is
  triggered through iommu memory region notifier from device IOTLB
  invalidation descriptor processing routine.

With all the above, kernel vhost_net can co-operate with userspace
IOMMU. For vhost-user, the support could be easily done on top by
implementing the VhostOps.

Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2017-01-18 22:59:53 +02:00
..
2016-10-04 13:28:07 +01:00
2017-01-09 11:40:23 +00:00
2016-10-04 13:28:09 +01:00
2016-09-23 10:29:40 +10:00
2016-10-10 10:39:29 +01:00
2016-05-18 15:04:27 +03:00
2016-09-08 18:05:21 +04:00
2016-09-15 15:32:22 +03:00
2016-10-24 16:26:53 +01:00
2017-01-18 22:59:53 +02:00
2016-10-08 09:02:19 +03:00
2016-12-27 14:59:26 +00:00
2016-05-19 16:42:30 +02:00
2014-10-23 16:41:25 +02:00
2016-09-08 18:05:22 +04:00
2016-06-22 12:53:26 +02:00