From: Eric Blake <eblake@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>, qemu-devel@nongnu.org
Cc: stefanha@redhat.com
Subject: Re: [Qemu-devel] [PATCH] savevm: Improve error message for blocked migration
Date: Tue, 10 Feb 2015 07:22:20 -0700 [thread overview]
Message-ID: <54DA141C.9070908@redhat.com> (raw)
In-Reply-To: <1423574702-23072-1-git-send-email-kwolf@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1348 bytes --]
On 02/10/2015 06:25 AM, Kevin Wolf wrote:
> If an internal snapshot can't be saved because migration is blocked
> (most commonly probably because of AHCI), we had a really bad error
> message:
>
> $ echo -e "savevm foo\nquit" | qemu -M q35 /tmp/test.qcow2 -monitor stdio
You know, 'echo -e' is non-portable (even in bash; you can change shopt
so that it outputs a literal "-e" instead of turning on \
interpretation); it's worth getting used to using 'printf' for
portability. But that doesn't affect your commit.
> QEMU 2.2.50 monitor - type 'help' for more information
> (qemu) savevm foo
> Error -22 while writing VM
> (qemu) quit
>
> This patch converts qemu_savevm_state() to the Error infrastructure so
> that a useful error pointing to the problematic device is produced now:
>
> $ echo -e "savevm foo\nquit" | qemu -M q35 /tmp/test.qcow2 -monitor stdio
> QEMU 2.2.50 monitor - type 'help' for more information
> (qemu) savevm foo
> State blocked by non-migratable device '0000:00:1f.2/ich9_ahci'
> (qemu) quit
>
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> ---
> savevm.c | 11 +++++++----
> 1 file changed, 7 insertions(+), 4 deletions(-)
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2015-02-10 14:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-10 13:25 [Qemu-devel] [PATCH] savevm: Improve error message for blocked migration Kevin Wolf
2015-02-10 14:22 ` Eric Blake [this message]
2015-02-12 17:05 ` Stefan Hajnoczi
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=54DA141C.9070908@redhat.com \
--to=eblake@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/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).