From f93adcf4614d1a1688798c95ab95562e2a844cca Mon Sep 17 00:00:00 2001
From: Archana Shinde <archana.m.shinde@intel.com>
Date: Tue, 20 Mar 2018 11:52:39 -0700
Subject: [PATCH] docs: Add some documentation details for VFIO

Add explanation regarding how devices passed with VFIO can
be accessed with a container.

Fixes #1079

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
---
 docs/Passing-Devices-with-Clear-Containers.md | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/docs/Passing-Devices-with-Clear-Containers.md b/docs/Passing-Devices-with-Clear-Containers.md
index e81e3ed3..65c79da3 100644
--- a/docs/Passing-Devices-with-Clear-Containers.md
+++ b/docs/Passing-Devices-with-Clear-Containers.md
@@ -29,6 +29,15 @@ to `vfio-pci` driver and then pass the IOMMU group that the device belongs to on
 the docker command line.
 For detailed steps to bind and unbind devices, see https://github.com/containers/virtcontainers#how-to-pass-a-device-using-vfio-passthrough
 
+You can verify that the device is passed to the Clear Containers container by running
+`lspci` command inside the container.
+
+For the device to be visible inside the container under /dev, you need to pass /dev
+while starting a container as shown below:
+
+```
+$ sudo docker run -it -v /dev:/dev --device=/dev/vfio/16 centos/tools bash
+```
 
 ## Block Devices