Skip to content

migration: Fix error propagation regression and memory leak

Arun Menon qemu-devel 2 versions – In review

Get series with b4
b4 am 20251028-solve_error_fatal_regression-v2-0-dab24c808a28@redhat.com change-id 20251024-solve_error_fatal_regression-301763debd8f

Versions newest first

  1. v2 Latest2 patches 2 repliesIn review
  2. v11 patch 4 repliesSuperseded

Changes in v2 from the cover letter

- 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

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2migration: Fix regression of passing error_fatal into vmstate_load_state()hw/display/virtio-gpu.c hw/pci/pci.c hw/s390x/virtio-ccw.c +4 more+78 -182 replies
2/2migration: Fix memory leak in postcopy_ram_listen_thread()migration/savevm.c+1 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchCornelia HuckAkihiko Odaki
1/2R-b R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] migration: Fix error propagation regression and memory leak

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,

Signature · 1 line
Arun Menon <[email protected]>