diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2019-09-05 07:17:52 -0400 |
---|---|---|
committer | Felipe Franciosi <felipe@nutanix.com> | 2019-09-05 16:45:35 +0100 |
commit | ab6e09fb512a60a422b2f6dcb54566d5a92bd157 (patch) | |
tree | 026ebc9b7f3809e479384899a18672e18ddbe23a /README.md | |
parent | 8f12102a9481f244087d077409a65d18a19eee5f (diff) | |
download | libvfio-user-ab6e09fb512a60a422b2f6dcb54566d5a92bd157.zip libvfio-user-ab6e09fb512a60a422b2f6dcb54566d5a92bd157.tar.gz libvfio-user-ab6e09fb512a60a422b2f6dcb54566d5a92bd157.tar.bz2 |
use numerical steps in example explanation
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 42 |
1 files changed, 21 insertions, 21 deletions
@@ -120,29 +120,29 @@ Running gpio-pci-idio-16 1. First, follow the instructions to build and load muser. 2. Then, start the gpio-pci-idio-16 device emulation: - - # echo 00000000-0000-0000-0000-000000000000 > /sys/class/muser/muser/mdev_supported_types/muser-1/create - # build/dbg/samples/gpio-pci-idio-16 00000000-0000-0000-0000-000000000000 - +``` +# echo 00000000-0000-0000-0000-000000000000 > /sys/class/muser/muser/mdev_supported_types/muser-1/create +# build/dbg/samples/gpio-pci-idio-16 00000000-0000-0000-0000-000000000000 +``` 3. Finally, start the VM adding the command line explained earlier and then execute: - - # insmod gpio-pci-idio-16.ko - # cat /sys/class/gpio/gpiochip480/base > /sys/class/gpio/export - # for ((i=0;i<12;i++)); do cat /sys/class/gpio/OUT0/value; done - 0 - 0 - 0 - 1 - 1 - 1 - 0 - 0 - 0 - 1 - 1 - 1 - +``` +# insmod gpio-pci-idio-16.ko +# cat /sys/class/gpio/gpiochip480/base > /sys/class/gpio/export +# for ((i=0;i<12;i++)); do cat /sys/class/gpio/OUT0/value; done +0 +0 +0 +1 +1 +1 +0 +0 +0 +1 +1 +1 +``` Future Work =========== |