mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-19 01:39:48 +00:00
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 <xiaodong.liu@intel.com>
This commit is contained in:
parent
2c6cb39e07
commit
688c88a60f
@ -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
|
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
|
target application. We recommend you use a minimum of 4GiB, enough for the SPDK
|
||||||
vhost target and the virtual machine.
|
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
|
```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
|
Then, take directory `/var/run/kata-containers/vhost-user` as Kata's vhost-user
|
||||||
|
Loading…
Reference in New Issue
Block a user