Skip to content

Commit 074e347

Browse files
mstsirkinmdroth
authored andcommitted
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: [email protected] Acked-by: Jason Wang <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> (cherry picked from commit 131c522) Signed-off-by: Michael Roth <[email protected]>
1 parent 9e8d994 commit 074e347

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

hw/net/virtio-net.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,8 +1125,6 @@ static int32_t virtio_net_flush_tx(VirtIONetQueue *q)
11251125
return num_packets;
11261126
}
11271127

1128-
assert(vdev->vm_running);
1129-
11301128
if (q->async_tx.elem.out_num) {
11311129
virtio_queue_set_notification(q->tx_vq, 0);
11321130
return num_packets;

0 commit comments

Comments
 (0)