virtio-net: don't run bh on vm stopped
commite8bcf842001739765b8dcc1996d86a0ffd2054d5
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 2 Sep 2014 14:26:12 +0000 (2 17:26 +0300)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 4 Sep 2014 16:19:09 +0000 (4 17:19 +0100)
tree3a1806f01f96a7111c91eb3ff0228eeac423ef0d
parente1d64c084b2cc7e907b4e64026d8c8dba59116f8
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>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/net/virtio-net.c