diff options
author | Tejus GK <tejus.gk@nutanix.com> | 2023-10-03 06:55:37 +0000 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-10-04 10:54:40 +0200 |
commit | 969298f9d7ed0ccad39203bc3656805cbf0893d4 (patch) | |
tree | b9115ef0ae8ea84634b6fd63fd1cff056c08ab80 /backends/hostmem-file.c | |
parent | da1034094d375afe9e3d8ec8980550ea0f06f7e0 (diff) | |
download | qemu-969298f9d7ed0ccad39203bc3656805cbf0893d4.zip qemu-969298f9d7ed0ccad39203bc3656805cbf0893d4.tar.gz qemu-969298f9d7ed0ccad39203bc3656805cbf0893d4.tar.bz2 |
migration/vmstate: Introduce vmstate_save_state_with_err
Currently, a few code paths exist in the function vmstate_save_state_v,
which ultimately leads to a migration failure. However, an update in the
current MigrationState for the error description is never done.
vmstate.c somehow doesn't seem to allow the use of migrate_set_error due
to some dependencies for unit tests. Hence, this patch introduces a new
function vmstate_save_state_with_err, which will eventually propagate
the error message to savevm.c where a migrate_set_error call can be
eventually done.
Acked-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Tejus GK <tejus.gk@nutanix.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231003065538.244752-2-tejus.gk@nutanix.com>
Diffstat (limited to 'backends/hostmem-file.c')
0 files changed, 0 insertions, 0 deletions