net/vhost: add parameter to enable IOMMU feature
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 6 Nov 2017 20:38:12 +0000 (21:38 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 7 Nov 2017 13:19:30 +0000 (14:19 +0100)
commit447e0d3797566cec2f47ffe7560f11c522b1f2f6
tree7308153b54c7843db58d92185cc9572092622433
parent002d6a7e5517e27641d8a51b0e029f63e7aed6a0
net/vhost: add parameter to enable IOMMU feature

Introduce a new iommu-support parameter to Vhost PMD that
passes the RTE_VHOST_USER_IOMMU_SUPPORT flag at vhost
device register time.

Default value is 0, meaning that IOMMU support is disabled
if not specified explicitly.

Example to enable IOMMU support for a given device:

--vdev 'net_vhost0,iface=/tmp/vhost-user2,iommu-support=1'

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
Tested-by: Mark Kavanagh <mark.b.kavanagh@intel.com>
Acked-by: Mark Kavanagh <mark.b.kavanagh@intel.com>
doc/guides/nics/vhost.rst
drivers/net/vhost/rte_eth_vhost.c