|
|
016a62 |
From 83da09b513ecdc9225188de859f4d35184094522 Mon Sep 17 00:00:00 2001
|
|
|
016a62 |
From: Julia Suvorova <jusual@redhat.com>
|
|
|
016a62 |
Date: Tue, 4 Feb 2020 18:20:06 +0000
|
|
|
016a62 |
Subject: [PATCH 5/6] virtio: reset region cache when on queue deletion
|
|
|
016a62 |
|
|
|
016a62 |
RH-Author: Julia Suvorova <jusual@redhat.com>
|
|
|
016a62 |
Message-id: <20200204182007.183537-4-jusual@redhat.com>
|
|
|
016a62 |
Patchwork-id: 93704
|
|
|
016a62 |
O-Subject: [RHEL-8.2.0 qemu-kvm PATCH 3/4] virtio: reset region cache when on queue deletion
|
|
|
016a62 |
Bugzilla: 1708480
|
|
|
016a62 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
016a62 |
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
|
|
|
016a62 |
RH-Acked-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
016a62 |
|
|
|
016a62 |
From: Yuri Benditovich <yuri.benditovich@daynix.com>
|
|
|
016a62 |
|
|
|
016a62 |
https://bugzilla.redhat.com/show_bug.cgi?id=1708480
|
|
|
016a62 |
Fix leak of region reference that prevents complete
|
|
|
016a62 |
device deletion on hot unplug.
|
|
|
016a62 |
|
|
|
016a62 |
Cc: qemu-stable@nongnu.org
|
|
|
016a62 |
Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>
|
|
|
016a62 |
Message-Id: <20191226043649.14481-2-yuri.benditovich@daynix.com>
|
|
|
016a62 |
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
016a62 |
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
016a62 |
(cherry picked from commit 421afd2fe8dd4603216cbf36081877c391f5a2a4)
|
|
|
016a62 |
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
|
|
|
016a62 |
---
|
|
|
016a62 |
hw/virtio/virtio.c | 1 +
|
|
|
016a62 |
1 file changed, 1 insertion(+)
|
|
|
016a62 |
|
|
|
016a62 |
diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c
|
|
|
016a62 |
index 624f6e2..c105873 100644
|
|
|
016a62 |
--- a/hw/virtio/virtio.c
|
|
|
016a62 |
+++ b/hw/virtio/virtio.c
|
|
|
016a62 |
@@ -1607,6 +1607,7 @@ void virtio_delete_queue(VirtQueue *vq)
|
|
|
016a62 |
vq->vring.num_default = 0;
|
|
|
016a62 |
vq->handle_output = NULL;
|
|
|
016a62 |
vq->handle_aio_output = NULL;
|
|
|
016a62 |
+ virtio_virtqueue_reset_region_cache(vq);
|
|
|
016a62 |
}
|
|
|
016a62 |
|
|
|
016a62 |
void virtio_del_queue(VirtIODevice *vdev, int n)
|
|
|
016a62 |
--
|
|
|
016a62 |
1.8.3.1
|
|
|
016a62 |
|