net: skip virtio-net config of deleted nic's peers
commit68b5f314a269979b4f2014eb22873732d4745bcc
authorYuri Benditovich <yuri.benditovich@daynix.com>
Mon, 31 Oct 2016 22:01:17 +0000 (1 00:01 +0200)
committerJason Wang <jasowang@redhat.com>
Tue, 15 Nov 2016 07:36:21 +0000 (15 15:36 +0800)
tree7e2b2cdc98ff1d0e27f4348044112a70cf579acd
parent682df581c65ed2c1b9e77093e332214ecaa1ee93
net: skip virtio-net config of deleted nic's peers

https://bugzilla.redhat.com/show_bug.cgi?id=1373816
qemu core dump happens during repetitive unpug-plug
with multiple queues and Windows RSS-capable guest.
If back-end delete requested during virtio-net device
initialization, driver still can try configure the device
for multiple queues. The virtio-net device is expected
to be removed as soon as the initialization is done.

Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/virtio-net.c