|
|
9ae3a8 |
From 83375cf67c9567c94808e70fa9def3383a97320c Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Amos Kong <akong@redhat.com>
|
|
|
9ae3a8 |
Date: Fri, 19 Dec 2014 13:51:53 +0100
|
|
|
9ae3a8 |
Subject: [PATCH 02/16] virtio-net: drop assert on vm stop
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Message-id: <1418997113-32517-1-git-send-email-akong@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 62996
|
|
|
9ae3a8 |
O-Subject: [RHEL-7.2 qemu-kvm PATCH] virtio-net: drop assert on vm stop
|
|
|
9ae3a8 |
Bugzilla: 1139562
|
|
|
9ae3a8 |
RH-Acked-by: Vlad Yasevich <vyasevic@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Fam Zheng <famz@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Xiao Wang <jasowang@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
From: Michael S. Tsirkin <mst@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
On vm stop, vm_running state set to stopped
|
|
|
9ae3a8 |
before device is notified, so callbacks can get envoked with
|
|
|
9ae3a8 |
vm_running = false; and this is not an error.
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Cc: qemu-stable@nongnu.org
|
|
|
9ae3a8 |
Acked-by: Jason Wang <jasowang@redhat.com>
|
|
|
9ae3a8 |
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
9ae3a8 |
(cherry picked from commit 131c5221fe25a9547c4a388a3d26ff7fd14843e5)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Amos Kong <akong@redhat.com>
|
|
|
9ae3a8 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
hw/net/virtio-net.c | 2 --
|
|
|
9ae3a8 |
1 file changed, 2 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c
|
|
|
9ae3a8 |
index 4a50869..3fde455 100644
|
|
|
9ae3a8 |
--- a/hw/net/virtio-net.c
|
|
|
9ae3a8 |
+++ b/hw/net/virtio-net.c
|
|
|
9ae3a8 |
@@ -1025,8 +1025,6 @@ static int32_t virtio_net_flush_tx(VirtIONetQueue *q)
|
|
|
9ae3a8 |
return num_packets;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
- assert(vdev->vm_running);
|
|
|
9ae3a8 |
-
|
|
|
9ae3a8 |
if (q->async_tx.elem.out_num) {
|
|
|
9ae3a8 |
virtio_queue_set_notification(q->tx_vq, 0);
|
|
|
9ae3a8 |
return num_packets;
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.8.3.1
|
|
|
9ae3a8 |
|