From: Peter Xu <peterx@redhat.com>
To: Greg Kurz <groug@kaod.org>
Cc: qemu-devel@nongnu.org, armbru@redhat.com, lvivier@redhat.com,
ehabkost@redhat.com, quintela@redhat.com, dgilbert@redhat.com
Subject: Re: [Qemu-devel] [PATCH v2.1 3/4] doc: add item for "-M enforce-config-section"
Date: Thu, 6 Jul 2017 16:38:20 +0800 [thread overview]
Message-ID: <20170706083820.GA25924@pxdev.xzpeter.org> (raw)
In-Reply-To: <20170706100919.36be6596@bahia.lan>
On Thu, Jul 06, 2017 at 10:09:19AM +0200, Greg Kurz wrote:
> On Thu, 6 Jul 2017 10:08:41 +0800
> Peter Xu <peterx@redhat.com> wrote:
>
> > It's never documented, and now we have one more parameter for it (which
> > obsoletes this one). Document it properly.
> >
> > Although now when enforce-config-section is set, it'll override the
> > other "-global" parameter, that is not necessarily a rule. Forbid that
> > usage in the document.
> >
> > Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
> > Signed-off-by: Peter Xu <peterx@redhat.com>
> > ---
> > v2.1:
> > - remove the "undefined behavior" sentence [Markus]
> >
> > qemu-options.hx | 8 ++++++++
> > 1 file changed, 8 insertions(+)
> >
> > diff --git a/qemu-options.hx b/qemu-options.hx
> > index 297bd8a..1ce7a37 100644
> > --- a/qemu-options.hx
> > +++ b/qemu-options.hx
> > @@ -85,6 +85,14 @@ Enables or disables NVDIMM support. The default is off.
> > @item s390-squash-mcss=on|off
> > Enables or disables squashing subchannels into the default css.
> > The default is off.
> > +@item enforce-config-section=on|off
> > +If @option{enforce-config-section} is set to @var{on}, force migration
> > +code to send configuration section even if the machine-type sets the
> > +@option{migration.send-configuration} property to @var{off}.
> > +NOTE: this parameter is deprecated. Please use @option{-global}
> > +@option{migration.send-configuration}=@var{on|off} instead.
> > +@option{enforce-config-section} cannot be used together with
> > +@option{-global} @option{migration.send-configuration}.
>
> Is this last sentence correct ?
>
> My understanding is that "enforce-config-section" overrides
> "migration.send-configuration"...
Yes, in the codes it is.
But as mentioned in the commit message, this rule is actually not
really necessary, so it does not really conflict when we declare in
the document that it is not allowed to happen (the code just did
something extra). After all, we want to finally remove
enforce-config-section one day, so before that I would like to avoid
taking more responsibility on this old parameter.
Also, I hope people (especially who read this document) don't use
these two parameters at the same time, or better, use the new one,
rather than still using "enforce-config-section" after he knows that
"anyway, it'll override the global parameter, so this old one is still
better"...
Thanks,
--
Peter Xu
next prev parent reply other threads:[~2017-07-06 8:38 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-05 8:21 [Qemu-devel] [PATCH v2 0/4] migration: fix iotest 055, only-migratable break Peter Xu
2017-07-05 8:21 ` [Qemu-devel] [PATCH v2 1/4] migration: fix handling for --only-migratable Peter Xu
2017-07-05 8:21 ` [Qemu-devel] [PATCH v2 2/4] vl: move global property, migrate init earlier Peter Xu
2017-07-05 8:21 ` [Qemu-devel] [PATCH v2 3/4] doc: add item for "-M enforce-config-section" Peter Xu
2017-07-06 2:08 ` [Qemu-devel] [PATCH v2.1 " Peter Xu
2017-07-06 8:09 ` Greg Kurz
2017-07-06 8:38 ` Peter Xu [this message]
2017-07-06 18:30 ` Eduardo Habkost
2017-07-07 2:54 ` [Qemu-devel] [PATCH v2.2 " Peter Xu
2017-07-07 6:53 ` Greg Kurz
2017-07-07 12:12 ` Eduardo Habkost
2017-07-07 12:16 ` Dr. David Alan Gilbert
2017-07-10 9:02 ` Greg Kurz
2017-07-10 9:21 ` Peter Xu
2017-07-05 8:21 ` [Qemu-devel] [PATCH v2 4/4] doc: update TYPE_MIGRATION documents Peter Xu
2017-07-07 13:30 ` Eduardo Habkost
2017-07-10 12:55 ` [Qemu-devel] [PATCH v2 0/4] migration: fix iotest 055, only-migratable break 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=20170706083820.GA25924@pxdev.xzpeter.org \
--to=peterx@redhat.com \
--cc=armbru@redhat.com \
--cc=dgilbert@redhat.com \
--cc=ehabkost@redhat.com \
--cc=groug@kaod.org \
--cc=lvivier@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.