virtio-net: remove virtio queues if the guest doesn't support multiqueue
commitf9d6dbf0bf6e91b8ed896369ab1b7e91e5a1a4df
authorWen Congyang <wency@cn.fujitsu.com>
Wed, 15 Jul 2015 09:20:59 +0000 (15 17:20 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 20 Jul 2015 11:19:42 +0000 (20 14:19 +0300)
tree85b1a129c051c49d9170923a4adb59c85e5e213a
parent38705bb57bf1cd9e3f837cf11bcdee3876786c07
virtio-net: remove virtio queues if the guest doesn't support multiqueue

commit da51a335 adds all queues in .realize(). But if the
guest doesn't support multiqueue, we forget to remove them. And
we cannot handle the ctrl vq corretly. The guest will hang.

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
hw/net/virtio-net.c