summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2014-09-11 18:32:51 +0300
committerMichael Roth <mdroth@linux.vnet.ibm.com>2014-09-23 10:48:06 -0500
commit074e3471386ec97ffa145642ba614b2b87be2f10 (patch)
tree665921ea73a9a936e28f01a240a9018c025f8006 /hw
parent9e8d9941119fc2db7905d851a127a78bf672f009 (diff)
downloadqemu-074e3471386ec97ffa145642ba614b2b87be2f10.tar.gz
virtio-net: drop assert on vm stop
On vm stop, vm_running state set to stopped before device is notified, so callbacks can get envoked with vm_running = false; and this is not an error. Cc: qemu-stable@nongnu.org Acked-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> (cherry picked from commit 131c5221fe25a9547c4a388a3d26ff7fd14843e5) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/net/virtio-net.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c
index 826a2a5fca..2040eac9a1 100644
--- a/hw/net/virtio-net.c
+++ b/hw/net/virtio-net.c
@@ -1125,8 +1125,6 @@ static int32_t virtio_net_flush_tx(VirtIONetQueue *q)
return num_packets;
}
- assert(vdev->vm_running);
-
if (q->async_tx.elem.out_num) {
virtio_queue_set_notification(q->tx_vq, 0);
return num_packets;