Re: [PATCH v5 02/23] migration: push Error **errp into vmstate_load_state()

2025-07-18 Thread Arun Menon
Hi Daniel, Thank you so much for the review. On Thu, Jul 17, 2025 at 05:32:14PM +0100, Daniel P. Berrangé wrote: > On Thu, Jul 17, 2025 at 06:07:25AM +0530, Arun Menon wrote: > > This is an incremental step in converting vmstate loading > > code to report error via Error obj

Re: [PATCH v5 16/23] migration: push Error **errp into loadvm_process_enable_colo()

2025-07-17 Thread Arun Menon
On Thu, Jul 17, 2025 at 12:26:16PM +0900, Akihiko Odaki wrote: > On 2025/07/17 9:37, Arun Menon wrote: > > This is an incremental step in converting vmstate loading > > code to report error via Error objects instead of directly > > printing it to console/monitor. &

Re: [PATCH v5 09/23] migration: push Error **errp into ram_postcopy_incoming_init()

2025-07-17 Thread Arun Menon
Hi Akihiko, Thanks for the review. On Thu, Jul 17, 2025 at 12:34:21PM +0900, Akihiko Odaki wrote: > On 2025/07/17 9:37, Arun Menon wrote: > > This is an incremental step in converting vmstate loading > > code to report error via Error objects instead of directly > > p

[PATCH v5 20/23] migration: push Error **errp into qemu_load_device_state()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that qemu_load_device_state() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration/colo.c | 5

[PATCH v5 21/23] migration: Capture error in postcopy_ram_listen_thread()

2025-07-16 Thread Arun Menon
qemu will not display any errors before going into the postcopy pause state. Signed-off-by: Arun Menon --- migration/migration.c | 2 +- migration/savevm.c| 10 -- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/migration/migration.c b/migration/migration.c index

[PATCH v5 11/23] migration: push Error **errp into loadvm_postcopy_handle_listen()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that loadvm_postcopy_handle_listen() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration

[PATCH v5 08/23] migration: push Error **errp into loadvm_handle_cmd_packaged()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that loadvm_handle_cmd_packaged() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration/savevm.c

[PATCH v5 22/23] migration: Add error-parameterized function variants in VMSD struct

2025-07-16 Thread Arun Menon
exclusion from their counterparts, to prevent conflicts during the transition. - New impls should preferentally use 'errp' variants of these methods, and existing impls incrementally converted. The variants without 'errp' are intended to be removed once all usage is c

[PATCH v5 15/23] migration: push Error **errp into loadvm_handle_recv_bitmap()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that loadvm_handle_recv_bitmap() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration/savevm.c

[PATCH v5 06/23] migration: push Error **errp into qemu_loadvm_section_part_end()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that qemu_loadvm_section_part_end() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration

[PATCH v5 19/23] migration: push Error **errp into qemu_loadvm_state()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that qemu_loadvm_state() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration/migration.c | 5

[PATCH v5 18/23] migration: push Error **errp into qemu_loadvm_state_main()

2025-07-16 Thread Arun Menon
explicitly. Signed-off-by: Arun Menon --- migration/colo.c | 5 +++-- migration/savevm.c | 23 +-- migration/savevm.h | 3 ++- 3 files changed, 18 insertions(+), 13 deletions(-) diff --git a/migration/colo.c b/migration/colo.c index e0f713c837f5da25d67afbd02ceb6c54024ca3af

[PATCH v5 09/23] migration: push Error **errp into ram_postcopy_incoming_init()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that ram_postcopy_incoming_init() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration/postcopy

[PATCH v5 23/23] backends/tpm: Propagate vTPM error on migration failure

2025-07-16 Thread Arun Menon
the TPM backend. - It can then be retrieved using QMP command: {"execute" : "query-migrate"} Buglink: https://issues.redhat.com/browse/RHEL-82826 Reviewed-by: Stefan Berger Signed-off-by: Arun Menon --- backends/tpm/tpm_emulator.c | 39 -

[PATCH v5 14/23] migration: make loadvm_postcopy_handle_resume() void

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. Signed-off-by: Arun Menon --- migration/savevm.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/migration

[PATCH v5 16/23] migration: push Error **errp into loadvm_process_enable_colo()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that loadvm_process_enable_colo() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- include/migration

[PATCH v5 17/23] migration: push Error **errp into loadvm_postcopy_handle_switchover_start()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that loadvm_postcopy_handle_switchover_start() must report an error in errp, in case of failure. Signed-off-by: Arun Menon

[PATCH v5 13/23] migration: push Error **errp into loadvm_postcopy_ram_handle_discard()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that loadvm_postcopy_ram_handle_discard() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration

[PATCH v5 07/23] migration: push Error **errp into loadvm_process_command()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that loadvm_process_command() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration/savevm.c

[PATCH v5 10/23] migration: push Error **errp into loadvm_postcopy_handle_advise()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that loadvm_postcopy_handle_advise() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration

[PATCH v5 12/23] migration: push Error **errp into loadvm_postcopy_handle_run()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that loadvm_postcopy_handle_run() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration/savevm.c

[PATCH v5 05/23] migration: push Error **errp into qemu_loadvm_section_start_full()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that qemu_loadvm_section_start_full() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration

[PATCH v5 02/23] migration: push Error **errp into vmstate_load_state()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that vmstate_load_state() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- hw/display/virtio-gpu.c

[PATCH v5 00/23] migration: propagate vTPM errors using Error objects

2025-07-16 Thread Arun Menon
previously returned an integer now capture errors in the Error object, enabling other modules to adopt the post_load_errp hook in the future. One such change previously attempted: https://lists.gnu.org/archive/html/qemu-devel/2021-02/msg01727.html Resolves: https://issues.redhat.com/browse/RHEL-82

[PATCH v5 04/23] migration: push Error **errp into vmstate_load()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that vmstate_load() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration/savevm.c | 8

[PATCH v5 03/23] migration: push Error **errp into qemu_loadvm_state_header()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that qemu_loadvm_state_header() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration/savevm.c

[PATCH v5 01/23] migration: push Error **errp into vmstate_subsection_load()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that vmstate_subsection_load() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration/vmstate.c

Re: [PATCH v4 00/23] migration: propagate vTPM errors using Error objects

2025-07-16 Thread Arun Menon
-0300, Fabiano Rosas wrote: > Arun Menon writes: > > > Hello, > > > > Currently, when a migration of a VM with an encrypted vTPM > > fails on the destination host (e.g., due to a mismatch in secret values), > > the error message displayed on the source host is g

[PATCH v4 11/23] migration: push Error **errp into loadvm_postcopy_handle_listen()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that loadvm_postcopy_handle_listen() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration

[PATCH v4 10/23] migration: push Error **errp into loadvm_postcopy_handle_advise()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that loadvm_postcopy_handle_advise() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration

[PATCH v4 22/23] migration: Add error-parameterized function variants in VMSD struct

2025-07-16 Thread Arun Menon
exclusion from their counterparts, to prevent conflicts during the transition. - New impls should preferentally use 'errp' variants of these methods, and existing impls incrementally converted. The variants without 'errp' are intended to be removed once all usage is c

[PATCH v4 08/23] migration: push Error **errp into loadvm_handle_cmd_packaged()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that loadvm_handle_cmd_packaged() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration/savevm.c

[PATCH v4 15/23] migration: push Error **errp into loadvm_handle_recv_bitmap()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that loadvm_handle_recv_bitmap() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration/savevm.c

[PATCH v4 23/23] backends/tpm: Propagate vTPM error on migration failure

2025-07-16 Thread Arun Menon
the TPM backend. - It can then be retrieved using QMP command: {"execute" : "query-migrate"} Buglink: https://issues.redhat.com/browse/RHEL-82826 Reviewed-by: Stefan Berger Signed-off-by: Arun Menon --- backends/tpm/tpm_emulator.c | 39 -

[PATCH v4 04/23] migration: push Error **errp into vmstate_load()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that vmstate_load() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration/savevm.c | 8

[PATCH v4 18/23] migration: push Error **errp into qemu_loadvm_state_main()

2025-07-16 Thread Arun Menon
explicitly. Signed-off-by: Arun Menon --- migration/colo.c | 5 +++-- migration/savevm.c | 23 +-- migration/savevm.h | 3 ++- 3 files changed, 18 insertions(+), 13 deletions(-) diff --git a/migration/colo.c b/migration/colo.c index e0f713c837f5da25d67afbd02ceb6c54024ca3af

[PATCH v4 21/23] migration: Capture error in postcopy_ram_listen_thread()

2025-07-16 Thread Arun Menon
qemu will not display any errors before going into the postcopy pause state. Signed-off-by: Arun Menon --- migration/migration.c | 2 +- migration/savevm.c| 10 -- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/migration/migration.c b/migration/migration.c index

[PATCH v4 05/23] migration: push Error **errp into qemu_loadvm_section_start_full()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that qemu_loadvm_section_start_full() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration

[PATCH v4 12/23] migration: push Error **errp into loadvm_postcopy_handle_run()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that loadvm_postcopy_handle_run() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration/savevm.c

[PATCH v4 14/23] migration: make loadvm_postcopy_handle_resume() void

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. Signed-off-by: Arun Menon --- migration/savevm.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/migration

[PATCH v4 07/23] migration: push Error **errp into loadvm_process_command()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that loadvm_process_command() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration/savevm.c

[PATCH v4 01/23] migration: push Error **errp into vmstate_subsection_load()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that vmstate_subsection_load() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration/vmstate.c

[PATCH v4 09/23] migration: push Error **errp into ram_postcopy_incoming_init()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that ram_postcopy_incoming_init() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration/postcopy

[PATCH v4 06/23] migration: push Error **errp into qemu_loadvm_section_part_end()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that qemu_loadvm_section_part_end() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration

[PATCH v4 19/23] migration: push Error **errp into qemu_loadvm_state()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that qemu_loadvm_state() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration/migration.c | 5

[PATCH v4 20/23] migration: push Error **errp into qemu_load_device_state()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that qemu_load_device_state() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration/colo.c | 5

[PATCH v4 16/23] migration: push Error **errp into loadvm_process_enable_colo()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that loadvm_process_enable_colo() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- include/migration

[PATCH v4 17/23] migration: push Error **errp into loadvm_postcopy_handle_switchover_start()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that loadvm_postcopy_handle_switchover_start() must report an error in errp, in case of failure. Signed-off-by: Arun Menon

[PATCH v4 02/23] migration: push Error **errp into vmstate_load_state()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that vmstate_load_state() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- hw/display/virtio-gpu.c

[PATCH v4 00/23] migration: propagate vTPM errors using Error objects

2025-07-16 Thread Arun Menon
previously returned an integer now capture errors in the Error object, enabling other modules to adopt the post_load_errp hook in the future. One such change previously attempted: https://lists.gnu.org/archive/html/qemu-devel/2021-02/msg01727.html Resolves: https://issues.redhat.com/browse/RHEL-82

[PATCH v4 13/23] migration: push Error **errp into loadvm_postcopy_ram_handle_discard()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that loadvm_postcopy_ram_handle_discard() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration

[PATCH v4 03/23] migration: push Error **errp into qemu_loadvm_state_header()

2025-07-16 Thread Arun Menon
This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that qemu_loadvm_state_header() must report an error in errp, in case of failure. Signed-off-by: Arun Menon --- migration/savevm.c

Re: [PATCH v3 1/3] migration: Pass Error object errp into vm state loading functions

2025-07-02 Thread Arun Menon
Hi Markus, Thanks for the review. On Wed, Jul 02, 2025 at 03:01:51PM +0200, Markus Armbruster wrote: > Arun Menon writes: > > > - This is an incremental step in converting vmstate loading > > code to report errors. > > - Minimal changes to the signature a

Re: [PATCH v3 1/3] migration: Pass Error object errp into vm state loading functions

2025-07-02 Thread Arun Menon
Hi Daniel, Thanks for the review. On Wed, Jul 02, 2025 at 01:08:51PM +0100, Daniel P. Berrangé wrote: > On Wed, Jul 02, 2025 at 05:06:50PM +0530, Arun Menon wrote: > > - This is an incremental step in converting vmstate loading > > code to report errors. > > - Minimal cha

Re: [PATCH 3/3] backends/tpm: Propagate vTPM error on migration failure

2025-07-02 Thread Arun Menon
Hi Marc-André, Thank you for the review. On Tue, Jul 01, 2025 at 04:21:23PM +0400, Marc-André Lureau wrote: > Hi > > On Tue, Jun 24, 2025 at 4:26 PM Arun Menon wrote: > > > > - Introduce a new post_load_with_error() hook that will > > take in the Error object as a

[PATCH v3 3/3] backends/tpm: Propagate vTPM error on migration failure

2025-07-02 Thread Arun Menon
erger Signed-off-by: Arun Menon --- backends/tpm/tpm_emulator.c | 39 --- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/backends/tpm/tpm_emulator.c b/backends/tpm/tpm_emulator.c index 4a234ab2c0b19b2604bf

[PATCH v3 2/3] migration: Introduce a post_load_with_error hook

2025-07-02 Thread Arun Menon
discussed here : https://issues.redhat.com/browse/RHEL-82826 Signed-off-by: Arun Menon --- include/migration/vmstate.h | 1 + migration/vmstate.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index

[PATCH v3 0/3] migration: propagate vTPM errors using Error objects

2025-07-02 Thread Arun Menon
ries does not necessarily have to be applied in 1 go. Each patch can be compiled and tested separately. Resolves: https://issues.redhat.com/browse/RHEL-82826 Signed-off-by: Arun Menon --- Changes in v3: - Split the 2nd patch into 2. Introducing post_load_with_error() hook has been separated fro

[PATCH v3 1/3] migration: Pass Error object errp into vm state loading functions

2025-07-02 Thread Arun Menon
: Arun Menon --- hw/display/virtio-gpu.c | 2 +- hw/pci/pci.c| 2 +- hw/s390x/virtio-ccw.c | 2 +- hw/scsi/spapr_vscsi.c | 2 +- hw/vfio/pci.c | 2 +- hw/virtio/virtio-mmio.c | 2 +- hw/virtio/virtio-pci.c | 2 +- hw/virtio

Re: [PATCH 1/3] migration: Pass error object to report it to the caller

2025-06-27 Thread Arun Menon
Wed, Jun 25, 2025 at 09:15:53AM -0400, Peter Xu wrote: > On Wed, Jun 25, 2025 at 05:24:10PM +0530, Arun Menon wrote: > > Hi Peter, > > Hi, Arun, > > [...] > > > > > static void vmstate_save_old_style(QEMUFile *f, SaveStateEntry *se, &g

[PATCH v2 1/2] migration: Pass Error object errp into vm state loading functions

2025-06-27 Thread Arun Menon
: Arun Menon --- hw/display/virtio-gpu.c | 2 +- hw/pci/pci.c| 2 +- hw/s390x/virtio-ccw.c | 2 +- hw/scsi/spapr_vscsi.c | 2 +- hw/vfio/pci.c | 2 +- hw/virtio/virtio-mmio.c | 2 +- hw/virtio/virtio-pci.c | 2 +- hw/virtio

[PATCH v2 2/2] backends/tpm: Propagate vTPM error on migration failure

2025-06-27 Thread Arun Menon
om/browse/RHEL-82826 Reviewed-by: Stefan Berger Signed-off-by: Arun Menon --- backends/tpm/tpm_emulator.c | 39 --- include/migration/vmstate.h | 1 + migration/vmstate.c | 4 +++- 3 files changed, 24 insertions(+), 20 deletions(-) diff --git a/backend

[PATCH v2 0/2] migration: propagate vTPM errors using Error objects

2025-06-27 Thread Arun Menon
he series does not necessarily have to be applied in 1 go. Each patch can be compiled and tested separately. Resolves: https://issues.redhat.com/browse/RHEL-82826 Signed-off-by: Arun Menon --- Changes in v2: - Combine the first two changes into one, focusing on passing the Error object (errp)

Re: [PATCH 1/3] migration: Pass error object to report it to the caller

2025-06-25 Thread Arun Menon
Hi Peter, Thank you so much for the review. I shall squash patches 1 and 2 and add error_prepend() where I missed them; also adding a null check. On Tue, Jun 24, 2025 at 09:46:48AM -0400, Peter Xu wrote: > Hi, Arun, > > On Tue, Jun 24, 2025 at 05:53:04PM +0530, Arun Menon wrote: >

[PATCH 0/3] migration: propagate vTPM errors using Error objects

2025-06-24 Thread Arun Menon
he series does not necessarily have to be applied in 1 go. Each patch can be compiled and tested separately. Resolves: https://issues.redhat.com/browse/RHEL-82826 Signed-off-by: Arun Menon --- Arun Menon (3): migration: Pass error object to report it to the caller migration: Use erro

[PATCH 2/3] migration: Use error_setg instead of error_report

2025-06-24 Thread Arun Menon
- This is an incremental step in converting vmstate loading code to report error via Error object. - error_report() has been replaced with error_setg(); and in places where error has been already set, error_prepend() is used to not lose information. Signed-off-by: Arun Menon --- migration

[PATCH 1/3] migration: Pass error object to report it to the caller

2025-06-24 Thread Arun Menon
() - qemu_loadvm_section_start_full() - qemu_loadvm_section_part_end() - qemu_loadvm_state_header() - qemu_loadvm_state_main() Signed-off-by: Arun Menon --- hw/display/virtio-gpu.c | 2 +- hw/pci/pci.c| 2 +- hw/s390x/virtio-ccw.c | 2 +- hw/scsi/spapr_vscsi.c

[PATCH 3/3] backends/tpm: Propagate vTPM error on migration failure

2025-06-24 Thread Arun Menon
om/browse/RHEL-82826 Signed-off-by: Arun Menon --- backends/tpm/tpm_emulator.c | 39 --- include/migration/vmstate.h | 1 + migration/vmstate.c | 4 +++- 3 files changed, 24 insertions(+), 20 deletions(-) diff --git a/backends/tpm/tpm_emula