From: Fabiano Rosas <farosas@suse.de>
To: "Daniel P. Berrangé" <berrange@redhat.com>, qemu-devel@nongnu.org
Cc: "Peter Xu" <peterx@redhat.com>,
"Daniel P. Berrangé" <berrange@redhat.com>
Subject: Re: [PATCH] migration: show error message when postcopy fails
Date: Mon, 21 Jul 2025 11:29:50 -0300 [thread overview]
Message-ID: <87frepliqp.fsf@suse.de> (raw)
In-Reply-To: <20250721133913.2914669-1-berrange@redhat.com>
Daniel P. Berrangé <berrange@redhat.com> writes:
> The 'info migrate' command only shows the error message when the
> migration state is 'failed'. When postcopy is used, however,
> the 'postcopy-paused' state is used instead of 'failed', so we
> must show the error message there too.
>
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> ---
> migration/migration-hmp-cmds.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/migration/migration-hmp-cmds.c b/migration/migration-hmp-cmds.c
> index cef5608210..07fd227edc 100644
> --- a/migration/migration-hmp-cmds.c
> +++ b/migration/migration-hmp-cmds.c
> @@ -153,7 +153,8 @@ void hmp_info_migrate(Monitor *mon, const QDict *qdict)
> if (info->has_status) {
> monitor_printf(mon, "Status: \t\t%s",
> MigrationStatus_str(info->status));
> - if (info->status == MIGRATION_STATUS_FAILED && info->error_desc) {
> + if ((info->status == MIGRATION_STATUS_FAILED ||
> + info->status == MIGRATION_STATUS_POSTCOPY_PAUSED) && info->error_desc) {
> monitor_printf(mon, " (%s)\n", info->error_desc);
> } else {
> monitor_printf(mon, "\n");
Reviewed-by: Fabiano Rosas <farosas@suse.de>
queued
prev parent reply other threads:[~2025-07-21 14:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-21 13:39 [PATCH] migration: show error message when postcopy fails Daniel P. Berrangé
2025-07-21 14:29 ` Fabiano Rosas [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87frepliqp.fsf@suse.de \
--to=farosas@suse.de \
--cc=berrange@redhat.com \
--cc=peterx@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).