doc/vhost: make some updates to vhost documentation
1) Rename to "User's Guide". 2) Link to @ref getting_started. 3) Note that QEMU 2.10 now supports userspace vhost-scsi, and the SPDK patches are only needed for vhost-blk. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Id3508be4714fa35e9846d47019caf859cef65192 Reviewed-on: https://review.gerrithub.io/389412 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
This commit is contained in:
parent
7b02b40282
commit
42e0a6531f
40
doc/vhost.md
40
doc/vhost.md
@ -1,6 +1,6 @@
|
|||||||
# vhost {#vhost}
|
# vhost {#vhost}
|
||||||
|
|
||||||
# Getting Started Guide {#vhost_getting_started}
|
# vhost Users Guide {#vhost_users_guide}
|
||||||
|
|
||||||
The Storage Performance Development Kit vhost application is named `vhost`.
|
The Storage Performance Development Kit vhost application is named `vhost`.
|
||||||
This application extends SPDK to present virtio storage controllers to QEMU-based
|
This application extends SPDK to present virtio storage controllers to QEMU-based
|
||||||
@ -8,31 +8,31 @@ VMs and process I/O submitted to devices attached to those controllers.
|
|||||||
|
|
||||||
# Prerequisites {#vhost_prereqs}
|
# Prerequisites {#vhost_prereqs}
|
||||||
|
|
||||||
The base SPDK build instructions are located in README.md in the SPDK root directory.
|
This guide assumes the SPDK has been built according to the instructions in @ref
|
||||||
This guide assumes familiarity with building SPDK using the default options.
|
getting_started. The SPDK vhost target is built with the default configure options.
|
||||||
|
|
||||||
If you want to kill the application using signal, make sure use the SIGTERM, then the application
|
|
||||||
will release all the share memory resource before exit, the SIGKILL will make the share memory
|
|
||||||
resource have no chance to be released by application, you may need to release the resource manually.
|
|
||||||
|
|
||||||
## Supported Guest Operating Systems
|
## Supported Guest Operating Systems
|
||||||
|
|
||||||
The guest OS must contain virtio drivers. The SPDK vhost target has been tested
|
The guest OS must contain virtio-scsi or virtio-blk drivers. Most Linux and FreeBSD
|
||||||
with Ubuntu 16.04, Fedora 25, Windows 2012 R2.
|
distributions include virtio drivers.
|
||||||
|
[Windows virtio drivers](https://fedoraproject.org/wiki/Windows_Virtio_Drivers) must be
|
||||||
# Building
|
installed separately. The SPDK vhost target has been tested with Ubuntu 16.04, Fedora
|
||||||
|
25, and Windows 2012 R2.
|
||||||
## SPDK
|
|
||||||
|
|
||||||
The vhost target is built by default.
|
|
||||||
Once built, the binary will be at `app/vhost/vhost`.
|
|
||||||
|
|
||||||
## QEMU
|
## QEMU
|
||||||
|
|
||||||
Vhost functionality is dependent on QEMU patches to enable virtio-scsi and
|
Userspace vhost-scsi target support was added to upstream QEMU in v2.10.0.
|
||||||
virtio-blk in userspace - those patches are currently working their way
|
Userspace vhost-blk target support is not yet upstream in QEMU, but patches
|
||||||
through the QEMU mailing list, but temporary patches to enable this
|
are available in SPDK's QEMU repository:
|
||||||
functionality are available in the spdk branch at https://github.com/spdk/qemu.
|
|
||||||
|
~~~{.sh}
|
||||||
|
git clone -b spdk https://github.com/spdk/qemu
|
||||||
|
cd qemu
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
../configure
|
||||||
|
make
|
||||||
|
~~~
|
||||||
|
|
||||||
# Configuration {#vhost_config}
|
# Configuration {#vhost_config}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user