]> git.proxmox.com Git - pve-qemu-kvm.git/blame - debian/patches/virtio-net_drop_assert_on_vm_stop.patch
apply patches/hotfix for virtio-net migration problem in 2.1.1
[pve-qemu-kvm.git] / debian / patches / virtio-net_drop_assert_on_vm_stop.patch
CommitLineData
9a5aa63a
DM
1Date: Thu, 11 Sep 2014 19:18:34 +0300\r
2From: "Michael S. Tsirkin" <mst@redhat.com>\r
3To: <qemu-devel@nongnu.org>\r
4\r
5On vm stop, vm_running state set to stopped\r
6before device is notified, so callbacks can get envoked with\r
7vm_running = false; and this is not an error.\r
8\r
9Cc: qemu-stable@nongnu.org\r
10Cc: Jason Wang <jasowang@redhat.com>\r
11Signed-off-by: Michael S. Tsirkin <mst@redhat.com>\r
12---\r
13 hw/net/virtio-net.c | 2 --\r
14 1 file changed, 2 deletions(-)\r
15\r
16diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c\r
17index 826a2a5..2040eac 100644\r
18--- a/hw/net/virtio-net.c\r
19+++ b/hw/net/virtio-net.c\r
20@@ -1125,8 +1125,6 @@ static int32_t virtio_net_flush_tx(VirtIONetQueue *q)\r
21 return num_packets;\r
22 }\r
23 \r
24- assert(vdev->vm_running);\r
25-\r
26 if (q->async_tx.elem.out_num) {\r
27 virtio_queue_set_notification(q->tx_vq, 0);\r
28 return num_packets;\r
29-- \r
30MST\r
31\r
32\r
33\r