virtio-net: Add queues before loading them
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Tue, 22 Oct 2024 06:49:01 +0000 (15:49 +0900)
committerJason Wang <jasowang@redhat.com>
Tue, 26 Nov 2024 03:56:44 +0000 (11:56 +0800)
commit9379ea9db3c0064fa2787db0794a23a30f7b2d2d
treede46f651062a51dd06acbf34e81ae294845dcd27
parent791e3837c1105aec4e328674aad32e34056957e2
virtio-net: Add queues before loading them

Call virtio_net_set_multiqueue() to add queues before loading their
states. Otherwise the loaded queues will not have handlers and elements
in them will not be processed.

Cc: qemu-stable@nongnu.org
Fixes: 8c49756825da ("virtio-net: Add only one queue pair when realizing")
Reported-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/virtio-net.c
hw/virtio/virtio.c
include/hw/virtio/virtio.h