vfio: support VF token
authorHaiyue Wang <haiyue.wang@intel.com>
Fri, 3 Jul 2020 14:57:18 +0000 (22:57 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 7 Jul 2020 12:06:49 +0000 (14:06 +0200)
commit598be723953889a6e0af410c82c223dee8381dab
tree5f5d740d1efdcdfd71e1e0020ace69b98cdbfa9d
parentedca6d883eb0137bc3caf7f93651a67360ebdf96
vfio: support VF token

The Linux kernel module vfio-pci introduces the VF token to enable
SR-IOV support since 5.7.

The VF token can be set by a vfio-pci based PF driver and must be known
by the vfio-pci based VF driver in order to gain access to the device.

Since the vfio-pci module uses the VF token as internal data to provide
the collaboration between SR-IOV PF and VFs, so DPDK can use the same
VF token for all PF devices by specifying the related EAL option.

Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
Tested-by: Harman Kalra <hkalra@marvell.com>
doc/guides/linux_gsg/linux_drivers.rst
doc/guides/linux_gsg/linux_eal_parameters.rst
doc/guides/rel_notes/release_20_08.rst
lib/librte_eal/common/eal_common_options.c
lib/librte_eal/common/eal_internal_cfg.h
lib/librte_eal/common/eal_options.h
lib/librte_eal/freebsd/eal.c
lib/librte_eal/include/rte_eal.h
lib/librte_eal/linux/eal.c
lib/librte_eal/linux/eal_vfio.c
lib/librte_eal/rte_eal_version.map