]> git.proxmox.com Git - mirror_qemu.git/commit
virtio-net: fix removal of failover device
authorJuan Quintela <quintela@redhat.com>
Fri, 3 Jul 2020 11:48:13 +0000 (13:48 +0200)
committerJason Wang <jasowang@redhat.com>
Wed, 15 Jul 2020 13:00:13 +0000 (21:00 +0800)
commit650181007a027034620995eb3d5044cea1ec9b49
tree99ff726be8903adc111ad2bc8f40786220b4f1f5
parent673205379fb499d2b72f2985b47ec7114282f5fe
virtio-net: fix removal of failover device

If you have a networking device and its virtio failover device, and
you remove them in this order:
- virtio device
- the real device

You get qemu crash.
See bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1820120

Bug exist on qemu 4.2 and 5.0.
But in 5.0 don't shows because commit
77b06bba62034a87cc61a9c8de1309ae3e527d97

somehow papers over it.

CC: Jason Wang <jasowang@redhat.com>
CC: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/virtio-net.c