Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
vhost-user-blk: add vhost-user-blk-pci host device to Qemu
Add a new vhost-user device type "vhost-user-blk-pci" to accelerate virtio-blk processing in user space. Qemu uses a char device to communicate with the I/O processing backend. The feature is enabled by default with Linux, and depends on CONFIG_VIRTIO configuration. To use this feature users can start the qemu with the following command line like this: qemu-system-x86_64 -m 1024 -object memory-backend-file, \ id=mem,size=1G, mem-path=/dev/hugepages,share=on \ -numa node,memdev=mem -hda /root/ubuntu.img \ -chardev socket,id=char0,path=/path/vhost.0 \ -net user,hostfwd=tcp::10022-:22 -net nic \ -device vhost-user-blk-pci,chardev=char0,\ logical_block_size=512,size=20G \ -vnc 0.0.0.0:1 --enable-kvm For 'size' parameter, users can specify with G(GiB) or M(MiB). Change-Id: I18b7ee930d07c6d9cb051a50398965a37a1c402b Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.gerrithub.io/363361 Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Tested-by: Daniel Verkamp <daniel.verkamp@intel.com>
- Loading branch information