]> git.ipfire.org Git - thirdparty/qemu.git/commit
vhost-user: simplify vhost_user_init/vhost_user_cleanup
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 8 Mar 2019 14:04:45 +0000 (15:04 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 13 Mar 2019 01:22:31 +0000 (21:22 -0400)
commit0b99f22461e59ec7a31c75ebc4c057a45dd9e9a5
tree142283f1815e944c15717de9ef156e74fcdb5acf
parent482580a658df58f5d9f91a87d957660637d59432
vhost-user: simplify vhost_user_init/vhost_user_cleanup

Take a VhostUserState* that can be pre-allocated, and initialize it
with the associated chardev.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
Message-Id: <20190308140454.32437-4-marcandre.lureau@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/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
net/vhost-user.c