All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Xu <peterx@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: qemu-devel@nongnu.org, Laurent Vivier <lvivier@redhat.com>,
	Eduardo Habkost <ehabkost@redhat.com>,
	"Dr . David Alan Gilbert" <dgilbert@redhat.com>,
	Juan Quintela <quintela@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 3/4] doc: add item for "-M enforce-config-section"
Date: Tue, 4 Jul 2017 18:40:36 +0800	[thread overview]
Message-ID: <20170704104036.GA5347@pxdev.xzpeter.org> (raw)
In-Reply-To: <874lussk0x.fsf@dusky.pond.sub.org>

On Tue, Jul 04, 2017 at 10:06:54AM +0200, Markus Armbruster wrote:
> Peter Xu <peterx@redhat.com> writes:
> 
> > It's never documented, and now we have one more parameter for it (which
> > means this one can be obsolete in the future). 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>
> > ---
> >  qemu-options.hx | 8 ++++++++
> >  1 file changed, 8 insertions(+)
> >
> > diff --git a/qemu-options.hx b/qemu-options.hx
> > index 297bd8a..927c51f 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
> > +Decides whether we will send the configuration section when doing
> > +migration. By default, it is turned on. We can set this to off to
> > +explicitly disable it. Note: this parameter will be obsolete soon,
> > +please use "-global migration.send-configuration=on|off" instead.
> 
> Please say "... is deprecated, please use ...", to make it visible in
> "git-grep -i deprecat".

Both "obsolete" and "deprecated" are used in QEMU for such an usage,
but I see indeed "deprecated" is used more often at least in
qemu-options.hx (used six times) than "obsolete" (one time only). Let
me switch then. :)

> 
> > +"enforce-config-section" cannot be used together with "-global
> > +migration.send-configuration". If it happens, the behavior is
> > +undefined.
> 
> Nasty.  Could we catch and reject such invalid usage?

Agree. However, looks like we cannot capture it easily on either of
the parameters (or, can we?). Since we defined it as "undefined", it
should be okay then, right?

After all, iiuc enforce-config-section is already very rarely used
(only on some special compat machines), and it'll be even more rare to
use the new one without removing the old.  Thanks,

-- 
Peter Xu

  reply	other threads:[~2017-07-04 10:40 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-03  2:44 [Qemu-devel] [PATCH 0/4] migration: fix iotest 055, only-migratable break Peter Xu
2017-07-03  2:44 ` [Qemu-devel] [PATCH 1/4] migration: fix handling for --only-migratable Peter Xu
2017-07-03 11:32   ` Juan Quintela
2017-07-03 16:52   ` Eduardo Habkost
2017-07-03  2:44 ` [Qemu-devel] [PATCH 2/4] vl: move global property, migrate init earlier Peter Xu
2017-07-03 14:59   ` Eduardo Habkost
2017-07-04  1:43     ` Peter Xu
2017-07-04  8:12     ` Markus Armbruster
2017-07-05 14:10       ` Eduardo Habkost
2017-07-03  2:44 ` [Qemu-devel] [PATCH 3/4] doc: add item for "-M enforce-config-section" Peter Xu
2017-07-03 11:34   ` Juan Quintela
2017-07-03 17:07   ` Eduardo Habkost
2017-07-04  2:18     ` Peter Xu
2017-07-04  8:06   ` Markus Armbruster
2017-07-04 10:40     ` Peter Xu [this message]
2017-07-05 14:06     ` Eduardo Habkost
2017-07-05 15:31       ` Markus Armbruster
2017-07-06  2:00         ` Peter Xu
2017-07-03  2:44 ` [Qemu-devel] [PATCH 4/4] doc: update TYPE_MIGRATION documents Peter Xu
2017-07-03 11:34   ` Juan Quintela
2017-07-03 16:53   ` Eduardo Habkost
2017-07-04  8:04   ` Markus Armbruster
2017-07-04  8:13     ` Peter Xu
2017-07-03  7:54 ` [Qemu-devel] [PATCH 0/4] migration: fix iotest 055, only-migratable break QingFeng Hao
2017-07-03  8:58   ` Peter Xu

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=20170704104036.GA5347@pxdev.xzpeter.org \
    --to=peterx@redhat.com \
    --cc=armbru@redhat.com \
    --cc=dgilbert@redhat.com \
    --cc=ehabkost@redhat.com \
    --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.