qemu-irix/net
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
..
Makefile.objs record/replay: add network support 2017-01-06 10:38:00 +08:00
checksum.c
clients.h
colo-compare.c trivial patches for 2016-10-28 2016-10-31 11:58:30 +00:00
colo.c filter-rewriter: rewrite tcp packet to keep secondary connection 2016-09-27 17:54:22 +08:00
colo.h filter-rewriter: rewrite tcp packet to keep secondary connection 2016-09-27 17:54:22 +08:00
dump.c
eth.c
filter-buffer.c
filter-mirror.c char: remove explicit_fe_open, use a set_handlers argument 2016-10-24 15:46:10 +02:00
filter-replay.c record/replay: add network support 2017-01-06 10:38:00 +08:00
filter-rewriter.c colo-proxy: fix memory leak 2016-10-26 09:58:02 +08:00
filter.c qtail: clean up direct access to tqe_prev field 2016-09-13 19:08:41 +02:00
hub.c
hub.h
l2tpv3.c
net.c net: fix sending of data with -net socket, listen backend 2016-11-15 15:36:21 +08:00
netmap.c
queue.c
slirp.c slirp: fix CharDriver breakage 2016-11-02 09:28:56 +01:00
socket.c net: fix sending of data with -net socket, listen backend 2016-11-15 15:36:21 +08:00
tap-aix.c
tap-bsd.c tap-bsd: OpenBSD uses tap(4) now 2016-10-26 09:57:59 +08:00
tap-haiku.c
tap-linux.c
tap-linux.h
tap-solaris.c
tap-win32.c
tap.c vhost_net: device IOTLB support 2017-01-18 22:59:53 +02:00
tap_int.h
trace-events net: split colo_compare_pkt_info into two trace events 2016-10-28 19:00:15 +01:00
util.c
util.h
vde.c
vhost-user.c char: remove explicit_fe_open, use a set_handlers argument 2016-10-24 15:46:10 +02:00