mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
482580a658
commit
0b99f22461
9 changed files with 33 additions and 66 deletions
|
@ -36,7 +36,7 @@ typedef struct VHostUserBlk {
|
|||
uint32_t queue_size;
|
||||
uint32_t config_wce;
|
||||
struct vhost_dev dev;
|
||||
VhostUserState *vhost_user;
|
||||
VhostUserState vhost_user;
|
||||
} VHostUserBlk;
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue