]> git.proxmox.com Git - mirror_qemu.git/commit - qapi/migration.json
migration: Display error in query-migrate irrelevant of status
authorPeter Xu <peterx@redhat.com>
Wed, 4 Oct 2023 22:02:31 +0000 (18:02 -0400)
committerJuan Quintela <quintela@redhat.com>
Wed, 11 Oct 2023 09:17:04 +0000 (11:17 +0200)
commitc94143e587875bd70c280d72b1b70d9eefaf6854
tree31a05cdf9c46f505630693c6b345d00cd5813c15
parent2c88739cfd6f8b499c60e1384507e011721ae467
migration: Display error in query-migrate irrelevant of status

Display it as long as being set, irrelevant of FAILED status.  E.g., it may
also be applicable to PAUSED stage of postcopy, to provide hint on what has
gone wrong.

The error_mutex seems to be overlooked when referencing the error, add it
to be very safe.

This will change QAPI behavior by showing up error message outside !FAILED
status, but it's intended and doesn't expect to break anyone.

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2018404
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231004220240.167175-2-peterx@redhat.com>
migration/migration.c
qapi/migration.json