qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] migration: Fix error propagation regression and memory leak
@ 2025-10-28  6:21 Arun Menon
  2025-10-28  6:21 ` [PATCH v2 1/2] migration: Fix regression of passing error_fatal into vmstate_load_state() Arun Menon
  2025-10-28  6:21 ` [PATCH v2 2/2] migration: Fix memory leak in postcopy_ram_listen_thread() Arun Menon
  0 siblings, 2 replies; 5+ messages in thread
From: Arun Menon @ 2025-10-28  6:21 UTC (permalink / raw)
  To: qemu-devel
  Cc: Alex Bennée, Akihiko Odaki, Dmitry Osipenko,
	Michael S. Tsirkin, Marcel Apfelbaum, Cornelia Huck, Halil Pasic,
	Eric Farman, Christian Borntraeger, Matthew Rosato, Thomas Huth,
	Richard Henderson, David Hildenbrand, Ilya Leoshkevich,
	Paolo Bonzini, Fam Zheng, Nicholas Piggin, Harsh Prateek Bora,
	Peter Maydell, Peter Xu, Fabiano Rosas, qemu-s390x, qemu-ppc,
	Arun Menon

Hi,

This series fixes the following:

commit c632ffbd74 introduced a regression of passing error_fatal
to vmstate_load_state() and vmstate_save_state() functions.
This will not allow us to propagate the error back to the caller.

commit 94272d9b45 introduced a memory leak in postcopy_ram_listen_thread().
We need to free the local_err object in the if clause as well.

---
Changes in v2:
- Refactoring of the return statement in virtio_gpu_load().
- Add another patch to fix the memory leak in postcopy_ram_listen_thread()
- Link to v1: https://lore.kernel.org/qemu-devel/20251024-solve_error_fatal_regression-v1-1-d26e6cbd0a7e@redhat.com

---
Arun Menon (2):
      migration: Fix regression of passing error_fatal into vmstate_load_state()
      migration: Fix memory leak in postcopy_ram_listen_thread()

 hw/display/virtio-gpu.c | 19 ++++++++++++++-----
 hw/pci/pci.c            | 13 +++++++++++--
 hw/s390x/virtio-ccw.c   | 15 +++++++++++++--
 hw/scsi/spapr_vscsi.c   |  9 +++++++--
 hw/virtio/virtio-mmio.c | 15 +++++++++++++--
 hw/virtio/virtio-pci.c  | 15 +++++++++++++--
 hw/virtio/virtio.c      | 10 +++++++---
 migration/savevm.c      |  1 +
 8 files changed, 79 insertions(+), 18 deletions(-)
---
base-commit: 36076d24f04ea9dc3357c0fbe7bb14917375819c
change-id: 20251024-solve_error_fatal_regression-301763debd8f

Best regards,
-- 
Arun Menon <armenon@redhat.com>



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-10-28 14:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-28  6:21 [PATCH v2 0/2] migration: Fix error propagation regression and memory leak Arun Menon
2025-10-28  6:21 ` [PATCH v2 1/2] migration: Fix regression of passing error_fatal into vmstate_load_state() Arun Menon
2025-10-28  6:42   ` Akihiko Odaki
2025-10-28 14:26     ` Peter Xu
2025-10-28  6:21 ` [PATCH v2 2/2] migration: Fix memory leak in postcopy_ram_listen_thread() Arun Menon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).