From: Eric Blake <eblake@redhat.com>
To: "Kővágó, Zoltán" <dirty.ice.hu@gmail.com>, qemu-devel@nongnu.org
Cc: Eduardo Habkost <ehabkost@redhat.com>,
Markus Armbruster <armbru@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2 1/3] qapi: convert NumaOptions into a flat union
Date: Wed, 23 Sep 2015 08:40:05 -0600 [thread overview]
Message-ID: <5602B9C5.9020505@redhat.com> (raw)
In-Reply-To: <7567ba6259b039b5d89faf658c8f52d500e2595c.1443017811.git.DirtY.iCE.hu@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1597 bytes --]
On 09/23/2015 08:27 AM, Kővágó, Zoltán wrote:
> Changes the NumaOptions to flat union from a simple one. This is
> required by my later OptsVisitor patch to preserve backward
> compatibility.
>
> Strictly speaking this would break QMP compatibility (as specified in
> docs/qapi-code-gen.txt), but since no QMP command use this structure,
> it's not an issue. The -numa option syntax doesn't change. There are
> some changes in the C api, but this patch fixes them.
>
> Signed-off-by: Kővágó, Zoltán <DirtY.iCE.hu@gmail.com>
> Reviewed-by: Eric Blake <eblake@redhat.com>
>
> ---
>
> Changes from v1:
> * fixed documentation
Since you're basing this on top of my pending series, why not take
advantage of it...
> +##
> +# @NumaCommonOptions
> +#
> +# Common set of numa options.
> +#
> +# @type: NUMA command-line option type.
> +#
> +# Since: 2.5
> +##
> +{ 'struct': 'NumaCommonOptions',
> + 'data': {
> + 'type': 'NumaOptionType' } }
...by dropping this type, and instead...
> +
> +##
> +# @NumaOptions
> +#
...document @type here, and...
> +# A discriminated record of NUMA options. (for OptsVisitor)
> +#
> +# Since 2.1
> +##
> +{ 'union': 'NumaOptions',
> + 'base': 'NumaCommonOptions',
...write this as 'base': { 'type': 'NumaOptionType' },
> + 'discriminator': 'type',
> + 'data': {
> + 'node': 'NumaNodeOptions' }}
> +
> +##
> # @HostMemPolicy
> #
> # Host memory policy types
>
--
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-09-23 14:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-23 14:27 [Qemu-devel] [PATCH v2 0/3] qapi-flattening and preparation of -audiodev option Kővágó, Zoltán
2015-09-23 14:27 ` [Qemu-devel] [PATCH v2 1/3] qapi: convert NumaOptions into a flat union Kővágó, Zoltán
2015-09-23 14:40 ` Eric Blake [this message]
2015-09-23 17:05 ` Kővágó Zoltán
2015-09-23 14:27 ` [Qemu-devel] [PATCH v2 2/3] qapi: change NetLegacy " Kővágó, Zoltán
2015-09-23 14:27 ` [Qemu-devel] [PATCH v2 3/3] qapi: support nested structs in OptsVisitor Kővágó, Zoltán
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=5602B9C5.9020505@redhat.com \
--to=eblake@redhat.com \
--cc=armbru@redhat.com \
--cc=dirty.ice.hu@gmail.com \
--cc=ehabkost@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).