From 688c88a60feb079dca031e00e13914b435cb45ff Mon Sep 17 00:00:00 2001 From: Liu Xiaodong Date: Mon, 30 Mar 2020 21:44:05 -0400 Subject: [PATCH] use-cases: avoid binding PCI in using-vhost-user By default, SPDK's setup.sh will bind PCI devices to userspace from kernel. This may confuse beginners. So add PCI_WHITELIST="none" to blacklist all PCI devices. Fixes: #626 Signed-off-by: Liu Xiaodong --- use-cases/using-SPDK-vhostuser-and-kata.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/use-cases/using-SPDK-vhostuser-and-kata.md b/use-cases/using-SPDK-vhostuser-and-kata.md index 85e4d617f1..bc9bdb87b9 100644 --- a/use-cases/using-SPDK-vhostuser-and-kata.md +++ b/use-cases/using-SPDK-vhostuser-and-kata.md @@ -126,10 +126,10 @@ Following the SPDK [getting started guide](https://spdk.io/doc/getting_started.h First, run the SPDK `setup.sh` script to setup some hugepages for the SPDK vhost target application. We recommend you use a minimum of 4GiB, enough for the SPDK vhost target and the virtual machine. -This will allocate 4096MiB (4GiB) of hugepages: +This will allocate 4096MiB (4GiB) of hugepages, and avoid binding PCI devices: ```bash -$ sudo HUGEMEM=4096 scripts/setup.sh +$ sudo HUGEMEM=4096 PCI_WHITELIST="none" scripts/setup.sh ``` Then, take directory `/var/run/kata-containers/vhost-user` as Kata's vhost-user