[v2,1/1] doc: clarify VFIO doc for built-in modules
Checks
Commit Message
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 <anatoly.burakov@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
---
doc/guides/linux_gsg/linux_drivers.rst | 6 ++++++
1 file changed, 6 insertions(+)
Comments
On Wed, Oct 27, 2021 at 5:39 PM Anatoly Burakov
<anatoly.burakov@intel.com> wrote:
>
> 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 <anatoly.burakov@intel.com>
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
Applied, thanks.
@@ -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