]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio-net: Add queues before loading them
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Tue, 22 Oct 2024 06:49:01 +0000 (15:49 +0900)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 29 Aug 2025 15:05:15 +0000 (18:05 +0300)
commit361da9bd09bb524da6d1ac07749b4a2d45790c36
tree4ae22c959a431942d58e357145f61d6334626f6e
parent653217a501a1575eb2aabc2fd4522ab5be62907d
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")
Fixes: 653217a501a1 ("virtio-net: Add only one queue pair when realizing" in 7.2.x)
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>
(cherry picked from commit 9379ea9db3c0064fa2787db0794a23a30f7b2d2d)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/net/virtio-net.c
hw/virtio/virtio.c
include/hw/virtio/virtio.h