All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: Juan Quintela <quintela@redhat.com>,
	qemu-devel@nongnu.org, lvivier@redhat.com, dgilbert@redhat.com,
	peterx@redhat.com
Subject: Re: [Qemu-devel] [PATCH v10 2/5] migration: Create socket-address parameter
Date: Thu, 29 Nov 2018 10:30:36 +0100	[thread overview]
Message-ID: <87woowb58j.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <743778f1-1769-502d-26ff-51c17578e283@redhat.com> (Eric Blake's message of "Wed, 28 Nov 2018 08:27:40 -0600")

Eric Blake <eblake@redhat.com> writes:

[...]
>> +++ b/qapi/sockets.json
>> @@ -152,3 +152,16 @@
>>               'unix': 'UnixSocketAddress',
>>               'vsock': 'VsockSocketAddress',
>>               'fd': 'String' } }
>> +
>> +##
>> +# @DummyStruct:
>> +#
>> +# Both block-core and migration needs SocketAddressList
>> +# I am open to comments about how to share it
>> +#
>> +# @dummy-list: A dummy list
>> +#
>> +# Since: 3.1
>> +##
>> +{ 'struct': 'DummyStruct',
>> +  'data': { 'dummy-list': ['SocketAddress'] } }
>
> We've had a couple of threads about this in the last couple of months;
> maybe it's time for a qapi generator patch where we add an optional
> 'gen-list':true marker to any struct that needs to have a list
> generated for C code even when no QMP command uses the list form.

Maybe.

As long as we need just a few such lists, stuffing them all into
DummyForceArrays should do fine.  There's no need for a fresh dummy type
for each list.

Beyond a certain point, the DummyForceArrays hack may become bothersome
enough to justify development and maintenance of a proper QAPI feature.

You mentioned "a couple of threads".  Have they resulted in fresh dummy
types?  Or, to ask the same question differently, for which types do we
force generation of list types?

  reply	other threads:[~2018-11-29  9:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-28 11:33 [Qemu-devel] [PATCH v10 0/5] Add make check tests for Migration Juan Quintela
2018-11-28 11:33 ` [Qemu-devel] [PATCH v10 1/5] tests: Add migration xbzrle test Juan Quintela
2018-11-28 11:33 ` [Qemu-devel] [PATCH v10 2/5] migration: Create socket-address parameter Juan Quintela
2018-11-28 14:27   ` Eric Blake
2018-11-29  9:30     ` Markus Armbruster [this message]
2018-11-28 11:33 ` [Qemu-devel] [PATCH v10 3/5] tests: Add basic migration precopy tcp test Juan Quintela
2018-11-28 11:33 ` [Qemu-devel] [PATCH v10 4/5] tests: Add migration multifd test Juan Quintela
2018-11-28 11:33 ` [Qemu-devel] [PATCH v10 5/5] [RFH] tests: Add migration compress threads tests Juan Quintela
2018-11-29 10:23 ` [Qemu-devel] [PATCH v10 0/5] Add make check tests for Migration Daniel P. Berrangé

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=87woowb58j.fsf@dusky.pond.sub.org \
    --to=armbru@redhat.com \
    --cc=dgilbert@redhat.com \
    --cc=eblake@redhat.com \
    --cc=lvivier@redhat.com \
    --cc=peterx@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.