migration: Update error description outside migration.c
commit848a0503422d043d541130d5e3e2f7bc147cdef9
authorTejus GK <tejus.gk@nutanix.com>
Tue, 3 Oct 2023 06:55:38 +0000 (3 06:55 +0000)
committerJuan Quintela <quintela@redhat.com>
Wed, 4 Oct 2023 08:54:40 +0000 (4 10:54 +0200)
tree7912f04315546e59d30faa03d7380b1803e950f2
parent969298f9d7ed0ccad39203bc3656805cbf0893d4
migration: Update error description outside migration.c

A few code paths exist in the source code,where a migration is
marked as failed via MIGRATION_STATUS_FAILED, but the failure happens
outside of migration.c

In such cases, an error_report() call is made, however the current
MigrationState is never updated with the error description, and hence
clients like libvirt never know the actual reason for the failure.

This patch covers such cases outside of migration.c and updates the
error description at the appropriate places.

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-3-tejus.gk@nutanix.com>
migration/savevm.c
migration/vmstate.c