From efb57dd5bbf0ffac645d09ed4d0dbad088b602f1 Mon Sep 17 00:00:00 2001 From: Anatoly Burakov Date: Wed, 27 Oct 2021 15:37:14 +0000 Subject: [PATCH] doc: clarify SRIOV activation with built-in VFIO Currently, the documentation only contains instructions for enabling SRIOV support for VFIO compiled as a module, but doesn't have any instructions on how to do the same for cases where VFIO is built-in. Add these instructions. Signed-off-by: Anatoly Burakov Acked-by: Bruce Richardson Acked-by: Bernard Iremonger --- doc/guides/linux_gsg/linux_drivers.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/guides/linux_gsg/linux_drivers.rst b/doc/guides/linux_gsg/linux_drivers.rst index c6b6881ea2..2dd711bb37 100644 --- a/doc/guides/linux_gsg/linux_drivers.rst +++ b/doc/guides/linux_gsg/linux_drivers.rst @@ -65,6 +65,12 @@ The token will be used for all PF and VF ports within the application. sudo modprobe vfio-pci enable_sriov=1 + Alternatively, pass the ``enable_sriov`` parameter through the ``sysfs`` if the module is already loaded or is built-in: + + .. code-block:: console + + echo 1 | sudo tee /sys/module/vfio_pci/parameters/enable_sriov + #. Bind the PCI devices to ``vfio-pci`` driver .. code-block:: console