Re: [Qemu-devel] [PATCH v2 2/6] vhost-user: introduce shared vhost-user state

2018-03-22 Thread Michael S. Tsirkin
On Mon, Mar 19, 2018 at 03:15:33PM +0800, Tiwei Bie wrote: > @@ -22,7 +23,7 @@ > > typedef struct VhostUserState { > NetClientState nc; > -CharBackend chr; /* only queue index 0 */ > +VhostUser vhost_user; /* only queue index 0 */ > VHostNetState *vhost_net; > guint watch;

[Qemu-devel] [PATCH v2 2/6] vhost-user: introduce shared vhost-user state

2018-03-19 Thread Tiwei Bie
When multi-queue is enabled for virtio-net, each virtio queue pair will have a vhost_dev, and the only thing they share currently is the chardev. This patch introduces a vhost-user state structure which will be shared by all virtio queue pairs of the same virtio device. Signed-off-by: Tiwei Bie -