virtio-net: vhost control virtqueue support
authorJason Wang <jasowang@redhat.com>
Wed, 20 Oct 2021 04:55:59 +0000 (12:55 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 20 Oct 2021 08:44:05 +0000 (04:44 -0400)
commit22288fe5a3f2dc4cb5c8826646d466019ad67682
tree3e26e47ae9b2ff709a19f19689c25981ed84c0d4
parent049eb15b5fc9c54ae76254a196b695000127da7a
virtio-net: vhost control virtqueue support

This patch implements the control virtqueue support for vhost. This
requires virtio-net to figure out the datapath queue pairs and control
virtqueue via is_datapath and pass the number of those two types
of virtqueues to vhost_net_start()/vhost_net_stop().

Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20211020045600.16082-10-jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/net/vhost_net.c
hw/net/virtio-net.c
include/hw/virtio/virtio-net.h