[Qemu-devel] [PATCH 0/2] Flatten simple unions where we still can

Markus Armbruster posted 2 patches 7 years, 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1486569864-17005-1-git-send-email-armbru@redhat.com
Test checkpatch passed
Test docker passed
Test s390x passed
There is a newer version of this series
net/net.c        | 44 ++++++++++++++++++++++----------------------
numa.c           |  4 ++--
qapi-schema.json | 17 +++++++++++++++++
3 files changed, 41 insertions(+), 24 deletions(-)
[Qemu-devel] [PATCH 0/2] Flatten simple unions where we still can
Posted by Markus Armbruster 7 years, 2 months ago
Simple unions are simpler than flat unions in the schema, but more
complicated in C and on the QMP wire: there's extra indirection in C
and extra nesting on the wire, both pointless.  They're best avoided
in new code.

But we can do more: we can flatten the simple unions that aren't used
in QMP.

In the longer run, I'd love to get rid of simple unions entirely, and
reduce the notational overhead of flat unions in the schema.

Markus Armbruster (2):
  numa: Turn simple union NumaOptions into a flat union
  net: Turn simple union NetLegacyOptions into a flat union

 net/net.c        | 44 ++++++++++++++++++++++----------------------
 numa.c           |  4 ++--
 qapi-schema.json | 17 +++++++++++++++++
 3 files changed, 41 insertions(+), 24 deletions(-)

-- 
2.7.4