]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
virtio-net: drop assert on vm stop
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 11 Sep 2014 15:32:51 +0000 (18:32 +0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 23 Sep 2014 15:48:06 +0000 (10:48 -0500)
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>
hw/net/virtio-net.c

index 826a2a5fca919a3fc959563f9611c9aa321b0a30..2040eac9a184acad06d9defeb0fc51b264af70e0 100644 (file)
@@ -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;