|
|
4636b8 |
From eec59692f7c3a776a3b5d01a367a3f467f403941 Mon Sep 17 00:00:00 2001
|
|
|
4636b8 |
From: Julia Suvorova <jusual@redhat.com>
|
|
|
4636b8 |
Date: Wed, 4 Mar 2020 20:07:53 -0500
|
|
|
4636b8 |
Subject: [PATCH 11/12] virtio: reset region cache when on queue deletion
|
|
|
4636b8 |
|
|
|
4636b8 |
RH-Author: Julia Suvorova <jusual@redhat.com>
|
|
|
4636b8 |
Message-id: <20200304200754.32708-4-jusual@redhat.com>
|
|
|
4636b8 |
Patchwork-id: 94154
|
|
|
4636b8 |
O-Subject: [RHEL-7.9 qemu-kvm-rhev PATCH 3/4] virtio: reset region cache when on queue deletion
|
|
|
4636b8 |
Bugzilla: 1721403
|
|
|
4636b8 |
RH-Acked-by: Stefano Garzarella <sgarzare@redhat.com>
|
|
|
4636b8 |
RH-Acked-by: Maxim Levitsky <mlevitsk@redhat.com>
|
|
|
4636b8 |
RH-Acked-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
4636b8 |
|
|
|
4636b8 |
From: Yuri Benditovich <yuri.benditovich@daynix.com>
|
|
|
4636b8 |
|
|
|
4636b8 |
https://bugzilla.redhat.com/show_bug.cgi?id=1708480
|
|
|
4636b8 |
Fix leak of region reference that prevents complete
|
|
|
4636b8 |
device deletion on hot unplug.
|
|
|
4636b8 |
|
|
|
4636b8 |
Cc: qemu-stable@nongnu.org
|
|
|
4636b8 |
Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>
|
|
|
4636b8 |
Message-Id: <20191226043649.14481-2-yuri.benditovich@daynix.com>
|
|
|
4636b8 |
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
4636b8 |
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
4636b8 |
(cherry picked from commit 421afd2fe8dd4603216cbf36081877c391f5a2a4)
|
|
|
4636b8 |
Signed-off-by: Jon Maloy <jmaloy.redhat.com>
|
|
|
4636b8 |
---
|
|
|
4636b8 |
hw/virtio/virtio.c | 1 +
|
|
|
4636b8 |
1 file changed, 1 insertion(+)
|
|
|
4636b8 |
|
|
|
4636b8 |
diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c
|
|
|
4636b8 |
index 29d8502500..9d624a3529 100644
|
|
|
4636b8 |
--- a/hw/virtio/virtio.c
|
|
|
4636b8 |
+++ b/hw/virtio/virtio.c
|
|
|
4636b8 |
@@ -1608,6 +1608,7 @@ void virtio_delete_queue(VirtQueue *vq)
|
|
|
4636b8 |
vq->vring.num_default = 0;
|
|
|
4636b8 |
vq->handle_output = NULL;
|
|
|
4636b8 |
vq->handle_aio_output = NULL;
|
|
|
4636b8 |
+ virtio_virtqueue_reset_region_cache(vq);
|
|
|
4636b8 |
}
|
|
|
4636b8 |
|
|
|
4636b8 |
void virtio_del_queue(VirtIODevice *vdev, int n)
|
|
|
4636b8 |
--
|
|
|
4636b8 |
2.18.2
|
|
|
4636b8 |
|