77ffa9e8e9
- kvm-spapr-Enable-DD2.3-accelerated-count-cache-flush-in-.patch [bz#1796240] - kvm-util-add-slirp_fmt-helpers.patch [bz#1798994] - kvm-tcp_emu-fix-unsafe-snprintf-usages.patch [bz#1798994] - kvm-virtio-add-ability-to-delete-vq-through-a-pointer.patch [bz#1791590] - kvm-virtio-make-virtio_delete_queue-idempotent.patch [bz#1791590] - kvm-virtio-reset-region-cache-when-on-queue-deletion.patch [bz#1791590] - kvm-virtio-net-delete-also-control-queue-when-TX-RX-dele.patch [bz#1791590] - Resolves: bz#1791590 ([Q35] No "DEVICE_DELETED" event in qmp after unplug virtio-net-pci device) - Resolves: bz#1796240 (Enable hw accelerated cache-count-flush by default for POWER9 DD2.3 cpus) - Resolves: bz#1798994 (CVE-2020-8608 qemu-kvm: QEMU: Slirp: potential OOB access due to unsafe snprintf() usages [rhel-av-8.2.0])
47 lines
1.6 KiB
Diff
47 lines
1.6 KiB
Diff
From 8bf4f561262d9282cebdb3418cdb9a69c92216a0 Mon Sep 17 00:00:00 2001
|
|
From: Julia Suvorova <jusual@redhat.com>
|
|
Date: Wed, 19 Feb 2020 21:34:30 +0000
|
|
Subject: [PATCH 6/7] virtio: reset region cache when on queue deletion
|
|
|
|
RH-Author: Julia Suvorova <jusual@redhat.com>
|
|
Message-id: <20200219213431.11913-4-jusual@redhat.com>
|
|
Patchwork-id: 93982
|
|
O-Subject: [RHEL-AV-8.2.0 qemu-kvm PATCH 3/4] virtio: reset region cache when on queue deletion
|
|
Bugzilla: 1791590
|
|
RH-Acked-by: Danilo de Paula <ddepaula@redhat.com>
|
|
RH-Acked-by: Stefano Garzarella <sgarzare@redhat.com>
|
|
RH-Acked-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
|
From: Yuri Benditovich <yuri.benditovich@daynix.com>
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=1708480
|
|
Fix leak of region reference that prevents complete
|
|
device deletion on hot unplug.
|
|
|
|
Cc: qemu-stable@nongnu.org
|
|
Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>
|
|
Message-Id: <20191226043649.14481-2-yuri.benditovich@daynix.com>
|
|
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
|
|
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|
|
(cherry picked from commit 421afd2fe8dd4603216cbf36081877c391f5a2a4)
|
|
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
|
|
---
|
|
hw/virtio/virtio.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c
|
|
index e6a9ba4..f644d9a 100644
|
|
--- a/hw/virtio/virtio.c
|
|
+++ b/hw/virtio/virtio.c
|
|
@@ -2343,6 +2343,7 @@ void virtio_delete_queue(VirtQueue *vq)
|
|
vq->handle_aio_output = NULL;
|
|
g_free(vq->used_elems);
|
|
vq->used_elems = NULL;
|
|
+ virtio_virtqueue_reset_region_cache(vq);
|
|
}
|
|
|
|
void virtio_del_queue(VirtIODevice *vdev, int n)
|
|
--
|
|
1.8.3.1
|
|
|