qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: "Eduardo Habkost" <ehabkost@redhat.com>,
	"Kővágó Zoltán" <dirty.ice.hu@gmail.com>
Cc: Markus Armbruster <armbru@redhat.com>,
	qemu-devel@nongnu.org, Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2 03/49] qapi: convert NumaOptions into a flat union
Date: Fri, 4 Sep 2015 15:11:05 -0600	[thread overview]
Message-ID: <55EA08E9.1090800@redhat.com> (raw)
In-Reply-To: <20150826153117.GF4230@thinpad.lan.raisama.net>

[-- Attachment #1: Type: text/plain, Size: 1884 bytes --]

On 08/26/2015 09:31 AM, Eduardo Habkost wrote:
> As long as somebody who understands QAPI says the changes make sense and
> should work, I am OK with them if the following is changed:

That would be me, right? See my other mail for my tentative R-b;
although if you start renaming things due to this discussion, maybe I
should review v3 more closely after all.

>>>> +##
>>>> +{ 'enum': 'NumaDriver',
>>>> +  'data': [ 'node' ] }
>>>
>>> Why is the name "NumaDriver"? Below, the field is called "type", so why
>>> not something like "NumaOptionType"?
>>
>> No particular reason other than the example in docs/qapi-code-gen.txt used
>> driver.  The field is called type because in the non-flat union the
>> discriminator is called type.
> 
> In the docs/qapi-code-gen.txt example, the option is about an actual
> blockdev driver, and the discriminator is really called "driver".
> 
> In this case, the field is called "type" and has nothing to do with
> drivers, so something like NumaOptionType makes more sense.

The enum name is not ABI (we can name it whatever makes sense), but does
show up in the C code that interacts with the generated type.  In fact,
if you could name the enum type 'NumaOptionsKind', then the C enum name
would not change (staying at NUMA_OPTIONS_KIND_NODE instead of your
change to NUMA_DRIVER_NODE).  Except that right now, the qapi generator
doesn't allow user-defined types ending in 'Kind'.  :(

I don't know if naming it NumaDriver makes sense; and so your suggestion
of naming it NumaOptionsType may be better in the long run.  It would
make your C enum become NUMA_OPTIONS_TYPE_NODE.

Or maybe you wait for me to do a followup patch to the qapi generator to
allow user-defined types ending in 'Kind'.

-- 
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 --]

  reply	other threads:[~2015-09-04 21:11 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-21 15:36 [Qemu-devel] [PATCH v2 00/49] audio: -audiodev option, multiple options Kővágó, Zoltán
2015-08-21 15:36 ` [Qemu-devel] [PATCH v2 01/49] opts: produce valid command line in qemu_opts_print Kővágó, Zoltán
2015-09-04 20:20   ` Eric Blake
2015-08-21 15:36 ` [Qemu-devel] [PATCH v2 02/49] qapi: support implicit structs in OptsVisitor Kővágó, Zoltán
2015-09-04 20:26   ` Eric Blake
2015-08-21 15:36 ` [Qemu-devel] [PATCH v2 03/49] qapi: convert NumaOptions into a flat union Kővágó, Zoltán
2015-08-21 23:13   ` Eduardo Habkost
2015-08-22 15:56     ` Kővágó Zoltán
2015-08-26 15:31       ` Eduardo Habkost
2015-09-04 21:11         ` Eric Blake [this message]
2015-09-04 21:02   ` Eric Blake
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 04/49] net: remove NetLegacy struct Kővágó, Zoltán
2015-09-04 21:25   ` Eric Blake
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 05/49] net: use Netdev instead of NetClientOptions in client init Kővágó, Zoltán
2015-09-04 21:36   ` Eric Blake
2015-09-04 21:49     ` Eric Blake
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 06/49] qapi: change Netdev into a flat union Kővágó, Zoltán
2015-09-04 23:13   ` Eric Blake
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 07/49] qapi: reorder NetdevBase and Netdev Kővágó, Zoltán
2015-09-04 23:18   ` Eric Blake
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 08/49] qapi: qapi for audio backends Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 09/49] qapi: support nested structs in OptsVisitor Kővágó, Zoltán
2015-09-04 23:21   ` Eric Blake
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 10/49] audio: use qapi AudioFormat instead of audfmt_e Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 11/49] audio: -audiodev command line option: documentation Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 12/49] audio: -audiodev command line option basic implementation Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 13/49] alsaaudio: port to -audiodev config Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 14/49] coreaudio: " Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 15/49] dsoundaudio: " Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 16/49] noaudio: " Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 17/49] ossaudio: " Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 18/49] paaudio: " Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 19/49] sdlaudio: " Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 20/49] spiceaudio: " Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 21/49] wavaudio: " Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 22/49] audio: -audiodev command line option: cleanup Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 23/49] audio: reduce glob_audio_state usage Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 24/49] audio: basic support for multi backend audio Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 25/49] audio: add audiodev properties to frontends Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 26/49] audio: audiodev= parameters no longer optional when -audiodev present Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 27/49] paaudio: do not create multiple connections to the same server Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 28/49] paaudio: do not move stream when sink/source name is specified Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 29/49] paaudio: properly disconnect streams in fini_* Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 30/49] audio: remove audio_MIN, audio_MAX Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 31/49] audio: do not run each backend in audio_run Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 32/49] paaudio: fix playback glitches Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 33/49] audio: remove read and write pcm_ops Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 34/49] audio: use size_t where makes sense Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 35/49] audio: api for mixeng code free backends Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 36/49] alsaaudio: port to the new audio backend api Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 37/49] coreaudio: " Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 38/49] dsoundaudio: " Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 39/49] noaudio: " Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 40/49] ossaudio: " Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 41/49] paaudio: " Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 42/49] sdlaudio: " Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 44/49] wavaudio: " Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 45/49] audio: remove remains of the old " Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 46/49] audio: unify input and output mixeng buffer management Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 47/49] audio: remove hw->samples, buffer_size_in/out pcm_ops Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 48/49] audio: common rate control code for timer based outputs Kővágó, Zoltán
2015-08-21 15:37 ` [Qemu-devel] [PATCH v2 49/49] audio: split ctl_* functions into enable_* and volume_* Kővágó, Zoltán
2015-09-03 10:15 ` [Qemu-devel] [PATCH v2 00/49] audio: -audiodev option, multiple options Gerd Hoffmann
2015-09-03 12:52   ` Kővágó Zoltán
2015-09-03 15:07   ` Eric Blake
2015-09-06 16:38     ` Kővágó Zoltán
2015-09-07  6:49       ` Markus Armbruster
2015-09-03 10:42 ` Gerd Hoffmann

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=55EA08E9.1090800@redhat.com \
    --to=eblake@redhat.com \
    --cc=armbru@redhat.com \
    --cc=dirty.ice.hu@gmail.com \
    --cc=ehabkost@redhat.com \
    --cc=kraxel@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).