summaryrefslogtreecommitdiffstats
path: root/default-configs/pci.mak
diff options
context:
space:
mode:
authorChangpeng Liu2018-01-04 02:53:32 +0100
committerMichael S. Tsirkin2018-01-18 20:52:37 +0100
commit00343e4b54ba0685e9ebe928ec5713b0cf7f1d1c (patch)
treed8827b2e2acab5c8803282db4bbee5c3808ca399 /default-configs/pci.mak
parentvhost-user: add new vhost user messages to support virtio config space (diff)
downloadqemu-00343e4b54ba0685e9ebe928ec5713b0cf7f1d1c.tar.gz
qemu-00343e4b54ba0685e9ebe928ec5713b0cf7f1d1c.tar.xz
qemu-00343e4b54ba0685e9ebe928ec5713b0cf7f1d1c.zip
vhost-user-blk: introduce a new vhost-user-blk host device
This commit introduces a new vhost-user device for block, it uses a chardev to connect with the backend, same with Qemu virito-blk device, Guest OS still uses the virtio-blk frontend driver. To use it, start QEMU with command line like this: qemu-system-x86_64 \ -chardev socket,id=char0,path=/path/vhost.socket \ -device vhost-user-blk-pci,chardev=char0,num-queues=2, \ bootindex=2... \ Users can use different parameters for `num-queues` and `bootindex`. Different with exist Qemu virtio-blk host device, it makes more easy for users to implement their own I/O processing logic, such as all user space I/O stack against hardware block device. It uses the new vhost messages(VHOST_USER_GET_CONFIG) to get block virtio config information from backend process. Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'default-configs/pci.mak')
-rw-r--r--default-configs/pci.mak1
1 files changed, 1 insertions, 0 deletions
diff --git a/default-configs/pci.mak b/default-configs/pci.mak
index e514bdef42..49a0f285ac 100644
--- a/default-configs/pci.mak
+++ b/default-configs/pci.mak
@@ -43,3 +43,4 @@ CONFIG_VGA_PCI=y
CONFIG_IVSHMEM_DEVICE=$(CONFIG_IVSHMEM)
CONFIG_ROCKER=y
CONFIG_VHOST_USER_SCSI=$(call land,$(CONFIG_VHOST_USER),$(CONFIG_LINUX))
+CONFIG_VHOST_USER_BLK=$(call land,$(CONFIG_VHOST_USER),$(CONFIG_LINUX))