vhost-user: introduce shared vhost-user state
commit4d0cf552d3a9585f380e8abdc313e4d416a56aa0
authorTiwei Bie <tiwei.bie@intel.com>
Thu, 24 May 2018 10:33:33 +0000 (24 18:33 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 24 May 2018 18:14:11 +0000 (24 21:14 +0300)
tree024c2f4a00c2aa98ca90aa2bbb8936da2377076d
parent5f57fbeaaf7c4cd33152d7f2e449caab4d4209d9
vhost-user: introduce shared vhost-user state

When multi queue is enabled e.g. for a virtio-net device,
each queue pair will have a vhost_dev, and the only thing
shared between vhost devs currently is the chardev. This
patch introduces a vhost-user state structure which will
be shared by all vhost devs of the same virtio device.

Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
backends/cryptodev-vhost-user.c
hw/block/vhost-user-blk.c
hw/scsi/vhost-user-scsi.c
hw/virtio/Makefile.objs
hw/virtio/vhost-stub.c
hw/virtio/vhost-user.c
include/hw/virtio/vhost-user-blk.h
include/hw/virtio/vhost-user-scsi.h
include/hw/virtio/vhost-user.h [new file with mode: 0644]
net/vhost-user.c