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;
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
-