From b9c34662e5bcf846be79a414bbdd5edcb230f488 Mon Sep 17 00:00:00 2001 From: Chen Qun Date: Tue, 16 Nov 2021 17:23:26 +0800 Subject: [PATCH 1/3] virtio-balloon: apply upstream patch. Signed-off-by: Ming Yang --- virtio-balloon-apply-upstream-patch.patch | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 virtio-balloon-apply-upstream-patch.patch diff --git a/virtio-balloon-apply-upstream-patch.patch b/virtio-balloon-apply-upstream-patch.patch new file mode 100644 index 00000000..09e03f15 --- /dev/null +++ b/virtio-balloon-apply-upstream-patch.patch @@ -0,0 +1,31 @@ +From c68a086b1280f8adf42b4419934c59215a15d81d Mon Sep 17 00:00:00 2001 +From: Ming Yang +Date: Tue, 16 Nov 2021 17:23:26 +0800 +Subject: [PATCH] virtio-balloon: apply upstream patch. + +Signed-off-by: Ming Yang +--- + hw/virtio/virtio-balloon.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c +index 25de154307..ae56c0d906 100644 +--- a/hw/virtio/virtio-balloon.c ++++ b/hw/virtio/virtio-balloon.c +@@ -830,6 +830,13 @@ static void virtio_balloon_device_unrealize(DeviceState *dev, Error **errp) + } + balloon_stats_destroy_timer(s); + qemu_remove_balloon_handler(s); ++ ++ virtio_del_queue(vdev, 0); ++ virtio_del_queue(vdev, 1); ++ virtio_del_queue(vdev, 2); ++ if (s->free_page_vq) { ++ virtio_del_queue(vdev, 3); ++ } + virtio_cleanup(vdev); + } + +-- +2.27.0 + -- Gitee From 34e53547f3d304e2a04b1bc4aedaca4eb7757f10 Mon Sep 17 00:00:00 2001 From: Chen Qun Date: Fri, 3 Dec 2021 16:27:39 +0800 Subject: [PATCH 2/3] spec: Update patch and changelog with !215 virtio-balloon: apply upstream patch. !215 virtio-balloon: apply upstream patch. Signed-off-by: Chen Qun --- qemu.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qemu.spec b/qemu.spec index e7cbb518..e1f3ce26 100644 --- a/qemu.spec +++ b/qemu.spec @@ -260,6 +260,7 @@ Patch0247: tftp-check-tftp_input-buffer-size.patch Patch0248: tftp-introduce-a-header-structure.patch Patch0249: fix-cve-2020-35504.patch Patch0250: fix-cve-2020-35505.patch +Patch0251: virtio-balloon-apply-upstream-patch.patch BuildRequires: flex BuildRequires: bison @@ -605,6 +606,9 @@ getent passwd qemu >/dev/null || \ %endif %changelog +* Fri Dec 03 2021 Chen Qun +- virtio-balloon: apply upstream patch. + * Wed Oct 27 2021 Chen Qun - fix cve-2020-35504 - fix cve-2020-35505 -- Gitee From b59696c5e0e2f05230d77b9541458effd00af5be Mon Sep 17 00:00:00 2001 From: Chen Qun Date: Fri, 3 Dec 2021 16:27:43 +0800 Subject: [PATCH 3/3] spec: Update release version with !215 increase release verison by one Signed-off-by: Chen Qun --- qemu.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu.spec b/qemu.spec index e1f3ce26..d3128cda 100644 --- a/qemu.spec +++ b/qemu.spec @@ -1,6 +1,6 @@ Name: qemu Version: 4.1.0 -Release: 50 +Release: 51 Epoch: 2 Summary: QEMU is a generic and open source machine emulator and virtualizer License: GPLv2 and BSD and MIT and CC-BY -- Gitee