mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-03 11:25:20 +00:00
docs: Update vhost-user-blk-testing.md
The purpose is to add more info while running spdk vhost tgt. For example, adding more info (total_size, block_size) to describe the meaning on creating malloc bdev inside spdk vhost tgt. Signed-off-by: Ziye Yang <ziye.yang@intel.com>
This commit is contained in:
parent
34edb8960f
commit
be79a80361
@ -69,12 +69,16 @@ make
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Set the SPDK environment
|
### Set the SPDK environment
|
||||||
|
|
||||||
|
Run SPDK vhost target with 2 CPU cores, i.e., core 0 and 1.
|
||||||
```bash
|
```bash
|
||||||
sudo HUGEMEM=2048 scripts/setup.sh
|
sudo HUGEMEM=2048 scripts/setup.sh
|
||||||
sudo ./build/bin/vhost -S /var/tmp -s 1024 -m 0x3 &
|
sudo ./build/bin/vhost -S /var/tmp -s 1024 -m 0x3 &
|
||||||
```
|
```
|
||||||
|
|
||||||
### Create 512M block device
|
### Create 512M block device
|
||||||
|
|
||||||
|
Create a 512M (first parameter) block device with 512 bytes (second parameter) block size.
|
||||||
```bash
|
```bash
|
||||||
sudo scripts/rpc.py bdev_malloc_create 512 512 -b Malloc0
|
sudo scripts/rpc.py bdev_malloc_create 512 512 -b Malloc0
|
||||||
sudo scripts/rpc.py vhost_create_blk_controller --cpumask 0x1 vhost.1 Malloc0
|
sudo scripts/rpc.py vhost_create_blk_controller --cpumask 0x1 vhost.1 Malloc0
|
||||||
|
Loading…
Reference in New Issue
Block a user