virtio-net: don't run bh on vm stopped
commit0187c7989a5cedd4f88bba76839cc9c44fb3fc81
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 2 Sep 2014 13:12:41 +0000 (2 16:12 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 2 Sep 2014 14:28:26 +0000 (2 17:28 +0300)
tree58cb5174a6b8ff47b8317b12f4e9938e1ea73bcf
parentfc8342f7589f0ef026cfebf8d6e5eab88323c7cf
virtio-net: don't run bh on vm stopped

commit 783e7706937fe15523b609b545587a028a2bdd03
    virtio-net: stop/start bh when appropriate

is incomplete: BH might execute within the same main loop iteration but
after vmstop, so in theory, we might trigger an assertion.
I was unable to reproduce this in practice,
but it seems clear enough that the potential is there, so worth fixing.

Cc: qemu-stable@nongnu.org
Reported-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/net/virtio-net.c