From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: qemu-devel@nongnu.org, quintela@redhat.com, jcody@redhat.com,
kwolf@redhat.com, kashyap@redhat.com
Subject: Re: [Qemu-devel] [PATCH] block migration: Allow compile time disable
Date: Mon, 15 May 2017 13:13:01 +0100 [thread overview]
Message-ID: <20170515121301.GF2089@work-vm> (raw)
In-Reply-To: <dcdd1530-4e73-f998-b85f-06db4f1c4b63@redhat.com>
* Eric Blake (eblake@redhat.com) wrote:
> On 05/03/2017 05:42 AM, Dr. David Alan Gilbert (git) wrote:
> > From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
> >
> > Many users now prefer to use drive_mirror over NBD as an
> > alternative to the older migrate -b option; drive_mirror is
> > more complex to setup but gives you more options (e.g. only
> > migrating some of the disks if some of them are shared).
> >
> > Allow the large chunk of block migration code to be compiled
> > out for those who don't use it.
> >
> > Based on a downstream-patch we've had for a while by Jeff Cody.
> >
> > Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
> > ---
> > @@ -1222,6 +1226,14 @@ void qmp_migrate(const char *uri, bool has_blk, bool blk,
> > params.blk = has_blk && blk;
> > params.shared = has_inc && inc;
> >
> > +#ifndef CONFIG_LIVE_BLOCK_MIGRATION
> > + if (params.blk || params.shared) {
> > + error_setg(errp, "QEMU compiled without old-style block migration. "
> > + "Use drive_mirror+NBD.");
>
> error_setg() should not be used with '.' (it should be a single phrase,
> here you are trying to stuff in two sentences). error_append_hint() can
> be used to supply the advice about using drive_mirror+NBD as the
> alternative.
>
> Otherwise this looks reasonable to me.
Done as:
error_setg(errp, "QEMU compiled without old-style block migration");
error_append_hint(errp, "Use drive_mirror+NBD.\n");
(All the places I can see seem to have . and \n in append_hint)
Dave
> --
> Eric Blake, Principal Software Engineer
> Red Hat, Inc. +1-919-301-3266
> Virtualization: qemu.org | libvirt.org
>
>
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
next prev parent reply other threads:[~2017-05-15 12:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-03 10:42 [Qemu-devel] [PATCH] block migration: Allow compile time disable Dr. David Alan Gilbert (git)
2017-05-03 18:06 ` Juan Quintela
2017-05-15 13:02 ` Dr. David Alan Gilbert
2017-05-15 13:09 ` Juan Quintela
2017-05-04 10:08 ` Kashyap Chamarthy
2017-05-04 10:25 ` Dr. David Alan Gilbert
2017-05-04 12:52 ` Kashyap Chamarthy
2017-05-15 13:24 ` Dr. David Alan Gilbert
2017-05-04 16:30 ` Eric Blake
2017-05-15 12:13 ` Dr. David Alan Gilbert [this message]
2017-05-15 13:44 ` Eric Blake
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=20170515121301.GF2089@work-vm \
--to=dgilbert@redhat.com \
--cc=eblake@redhat.com \
--cc=jcody@redhat.com \
--cc=kashyap@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@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).