From: Eric Blake <eblake@redhat.com>
To: "Dr. David Alan Gilbert (git)" <dgilbert@redhat.com>,
qemu-devel@nongnu.org, peterx@redhat.com,
alex.williamson@redhat.com, laine@redhat.com
Subject: Re: [PATCH 2/2] migration: Display the migration blockers
Date: Tue, 2 Feb 2021 08:38:13 -0600 [thread overview]
Message-ID: <1e37e294-7ce4-ae70-862c-5afa16ff7617@redhat.com> (raw)
In-Reply-To: <20210202135522.127380-3-dgilbert@redhat.com>
On 2/2/21 7:55 AM, Dr. David Alan Gilbert (git) wrote:
> From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
>
> Update 'info migrate' to display migration blocking information.
> If the outbound migration is not blocked, there is no change, however
> if it is blocked a message is displayed with a list of reasons why,
> e.g.
>
> qemu-system-x86_64 -nographic -smp 4 -m 4G -M pc,usb=on \
> -chardev null,id=n -device usb-serial,chardev=n \
> -virtfs local,path=/home,mount_tag=fs,security_model=none \
> -drive if=virtio,file=myimage.qcow2
>
> (qemu) info migrate
> globals:
> store-global-state: on
> only-migratable: off
> send-configuration: on
> send-section-footer: on
> decompress-error-check: on
> clear-bitmap-shift: 18
> Outgoing migration blocked:
> Migration is disabled when VirtFS export path '/home' is mounted in the guest using mount_tag 'fs'
> non-migratable device: 0000:00:01.2/1/usb-serial
>
> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
> ---
> monitor/hmp-cmds.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> +++ b/monitor/hmp-cmds.c
> @@ -224,6 +224,15 @@ void hmp_info_migrate(Monitor *mon, const QDict *qdict)
>
> migration_global_dump(mon);
>
> + if (info->blocked) {
Would be slightly more accurate to gate on info->has_blocked_reasons (as
written, you are depending on the fact that patch 1 always sets blocked
and has_blocked_reasons to the same value); which again highlights the
redundancy of a bool duplicating the presence of the optional ['str']
member. But since the code works as written,
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
next prev parent reply other threads:[~2021-02-02 14:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-02 13:55 [PATCH 0/2] migration blocker information Dr. David Alan Gilbert (git)
2021-02-02 13:55 ` [PATCH 1/2] migration: Add " Dr. David Alan Gilbert (git)
2021-02-02 14:34 ` Eric Blake
2021-02-02 15:52 ` Peter Xu
2021-02-02 13:55 ` [PATCH 2/2] migration: Display the migration blockers Dr. David Alan Gilbert (git)
2021-02-02 14:38 ` Eric Blake [this message]
2021-02-02 15:53 ` Peter Xu
2021-02-04 15:11 ` [PATCH 0/2] migration blocker information Dr. David Alan Gilbert
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=1e37e294-7ce4-ae70-862c-5afa16ff7617@redhat.com \
--to=eblake@redhat.com \
--cc=alex.williamson@redhat.com \
--cc=dgilbert@redhat.com \
--cc=laine@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).