diff options
author | Tiwei Bie <tiwei.bie@intel.com> | 2018-05-24 18:33:33 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2018-05-24 21:14:11 +0300 |
commit | 4d0cf552d3a9585f380e8abdc313e4d416a56aa0 (patch) | |
tree | 024c2f4a00c2aa98ca90aa2bbb8936da2377076d /hw/virtio/vhost-stub.c | |
parent | 5f57fbeaaf7c4cd33152d7f2e449caab4d4209d9 (diff) | |
download | qemu-4d0cf552d3a9585f380e8abdc313e4d416a56aa0.zip qemu-4d0cf552d3a9585f380e8abdc313e4d416a56aa0.tar.gz qemu-4d0cf552d3a9585f380e8abdc313e4d416a56aa0.tar.bz2 |
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>
Diffstat (limited to 'hw/virtio/vhost-stub.c')
-rw-r--r-- | hw/virtio/vhost-stub.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hw/virtio/vhost-stub.c b/hw/virtio/vhost-stub.c index 2d76cde..049089b 100644 --- a/hw/virtio/vhost-stub.c +++ b/hw/virtio/vhost-stub.c @@ -1,7 +1,17 @@ #include "qemu/osdep.h" #include "hw/virtio/vhost.h" +#include "hw/virtio/vhost-user.h" bool vhost_has_free_slot(void) { return true; } + +VhostUserState *vhost_user_init(void) +{ + return NULL; +} + +void vhost_user_cleanup(VhostUserState *user) +{ +} |