[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 77/78] virtio-balloon: unref the iothread when unrealizing
From: |
Michael Roth |
Subject: |
[PATCH 77/78] virtio-balloon: unref the iothread when unrealizing |
Date: |
Tue, 16 Jun 2020 09:15:46 -0500 |
From: David Hildenbrand <david@redhat.com>
We took a reference when realizing, so let's drop that reference when
unrealizing.
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alexander Duyck <alexander.h.duyck@linux.intel.com>
Fixes: c13c4153f76d ("virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT")
Cc: qemu-stable@nongnu.org
Cc: Wei Wang <wei.w.wang@intel.com>
Cc: Alexander Duyck <alexander.duyck@gmail.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20200520100439.19872-4-david@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 105aef9c9479786d27c1c45c9b0b1fa03dc46be3)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
---
hw/virtio/virtio-balloon.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c
index 64fdd0e332..9762a65600 100644
--- a/hw/virtio/virtio-balloon.c
+++ b/hw/virtio/virtio-balloon.c
@@ -820,6 +820,7 @@ static void virtio_balloon_device_unrealize(DeviceState
*dev, Error **errp)
if (s->free_page_bh) {
qemu_bh_delete(s->free_page_bh);
+ object_unref(OBJECT(s->iothread));
virtio_balloon_free_page_stop(s);
precopy_remove_notifier(&s->free_page_report_notify);
}
--
2.17.1
- [PATCH 72/78] 9p: Lock directory streams with a CoMutex, (continued)
[PATCH 73/78] net: Do not include a newline in the id of -nic devices, Michael Roth, 2020/06/16
[PATCH 75/78] virtio-balloon: fix free page hinting without an iothread, Michael Roth, 2020/06/16
[PATCH 76/78] virtio-balloon: fix free page hinting check on unrealize, Michael Roth, 2020/06/16
[PATCH 74/78] nbd/server: Avoid long error message assertions CVE-2020-10761, Michael Roth, 2020/06/16
[PATCH 77/78] virtio-balloon: unref the iothread when unrealizing,
Michael Roth <=
[PATCH 78/78] block: Call attention to truncation of long NBD exports, Michael Roth, 2020/06/16
[PATCH 07/78] virtio-blk: fix out-of-bounds access to bitmap in notify_guest_bh, Michael Roth, 2020/06/16
[PATCH 08/78] numa: remove not needed check, Michael Roth, 2020/06/16
Re: [PATCH 00/78] Patch Round-up for stable 4.2.1, freeze on 2020-06-22, Cole Robinson, 2020/06/17
Re: [PATCH 00/78] Patch Round-up for stable 4.2.1, freeze on 2020-06-22, Liam Merwick, 2020/06/17
Re: [PATCH 00/78] Patch Round-up for stable 4.2.1, freeze on 2020-06-22, Karl Heubaum, 2020/06/17
Re: [PATCH 00/78] Patch Round-up for stable 4.2.1, freeze on 2020-06-22, Finn Thain, 2020/06/19
Re: [PATCH 00/78] Patch Round-up for stable 4.2.1, freeze on 2020-06-22, Bruce Rogers, 2020/06/20