Skip to contentSkip to conversation

audio: -audiodev option, multiple options

PATCH In review Kővágó, Zoltán 5 participants 68 messages Aug 21, 2015 – Sep 7, 2015 Page 2 of 2

Subsystems (5)
lore
Share & tools
lore
Reviewed-by on v2 3/49
#10 lore raw

Re: [Qemu-devel] [PATCH v2 03/49] qapi: convert NumaOptions into a flat union

In reply to Kővágó, Zoltán
Quoted 1 line · Zoltán

The subject line is a one-line "what", and the commit body should be the "why" - all but the most trivial "what" deserve a non-empty commit body.

In particular, I think you NEED to mention in the commit body that the conversion does not strictly follow the QMP wire equivalency between simple and flat unions as spelled out in docs/qapi-code-gen.txt, but that this is okay because we do not have any QMP commands that use the NumaOptions type to begin with (so there is no observable change to any commands sent over QMP). Meanwhile, mention that the change is made to convert the generated C code into something that will ultimately be easier to work with.

Quoted 9 lines
---
 numa.c           |  2 +-
 qapi-schema.json | 47 ++++++++++++++++++++++++++++++++++++-----------
 2 files changed, 37 insertions(+), 12 deletions(-)

+++ b/numa.c

numa.c static int parse_numa(void *opaque, QemuOpts *opts, Error **errp) · line 230

Quoted 5 lines
numa.c +1 -1
@@ -227,7 +227,7 @@ static int parse_numa(void *opaque, QemuOpts *opts, Error **errp)
     }
 
     switch (object->kind) {
-    case NUMA_OPTIONS_KIND_NODE:
+    case NUMA_DRIVER_NODE:

Now that commit 0f61af3 has landed, you'll have to rebase your patch to use 'switch (object->type) {' here. Basically, the conversion from simple to flat union now (temporarily) generates a different tag name for simple unions than for flat unions (although I have a pending patch
[1] that solves that, but by using object->type everywhere).

[1] https://lists.gnu.org/archive/html/qemu-devel/2015-08/msg02061.html

Quoted 4 lines
qapi-schema.json +1 -0
+++ b/qapi-schema.json
@@ -3536,17 +3536,6 @@
   'data': { '*console':'int', 'events': [ 'InputEvent' ] } }
 

qapi-schema.json line 3547

Quoted 10 lines
qapi-schema.json +0 -9
 ##
-# @NumaOptions
-#
-# A discriminated record of NUMA options. (for OptsVisitor)
-#
-# Since 2.1
-##
-{ 'union': 'NumaOptions',
-  'data': {
-    'node': 'NumaNodeOptions' }}

If we were following the equivalency documented in docs/qapi-code-gen.txt, then this part is okay (you are removing the simple union),...

qapi-schema.json line 3572

Quoted 9 lines
qapi-schema.json +8 -0
 ##
+# @NumaDriver
+#
+# List of possible numa drivers.
+#
+# Since: 2.5
+##
+{ 'enum': 'NumaDriver',
+  'data': [ 'node' ] }

...this part is okay (you are creating a new enum, which covers all branches present in the former simple union),...

qapi-schema.json line 3585

Quoted 13 lines
qapi-schema.json +13 -0
+
+##
+# @NumaCommonOptions
+#
+# Common set of numa options.
+#
+# @type: the numa driver to use
+#
+# Since: 2.5
+##
+{ 'struct': 'NumaCommonOptions',
+  'data': {
+    'type': 'NumaDriver' } }

...this part is okay (you are creating a new base type, which consists of a single common member named 'type' of the new enum type),...

[By the way, while the base type is currently required, I have a pending patch that would add syntax sugar to avoid it, so maybe you want to wait for my patch [2] to land?

[2] https://lists.gnu.org/archive/html/qemu-devel/2015-08/msg02321.html

so you could write 'base': { 'type': 'NumaDriver' } directly in the flat union, instead of having to declare NumaCommonOptions]

qapi-schema.json line 3598

Quoted 13 lines
qapi-schema.json +13 -0
+
+##
+# @NumaOptions
+#
+# A discriminated record of NUMA options. (for OptsVisitor)
+#
+# Since 2.1
+##
+{ 'union': 'NumaOptions',
+  'base': 'NumaCommonOptions',
+  'discriminator': 'type',
+  'data': {
+    'node': 'NumaNodeOptions' }}

...but this part is missing one piece of the conversion (to be strictly QMP compatible with the simple union, each branch of the flat union must be a NEW type that contains a single member 'data' of the old type).

That is, if we were TRYING to preserve QMP compatibility, we'd need:

{ 'struct': 'NumaNodeOptionsWrapper',
'data': { 'data': 'NumaNodeOptions' } }
{ 'union': 'NumaOptions', 'base': 'NumaCommonOptions',

  'discriminator': 'type', 'data': {
    'node': 'NumaNodeOptionsWrapper' } }

The difference on the wire is that the old simple union, or with my version of the flat union, would allow:

{ 'command': 'foo', 'arguments': {
    'type': 'numa', 'data': { 'nodeid': 1 } } }

while the new flat union as you wrote it reduces nesting:

{ 'command': 'foo', 'arguments': {
    'type': 'numa', 'nodeid': 1 } }

That said, there is another point of view to worry about, which is what C structures get generated. Here, I'm using output after Markus' v4 series is applied (since it is slightly more legible than current qemu.git mainline generated output) (and although I still have further pending patches that improve it further). The pre-patch simple union would generate:

struct NumaOptions {
    NumaOptionsKind kind;
    union { /* union tag is @kind */
        void *data;
        NumaNodeOptions *node;
    };
};

and your version would generate (notice the rename from 'kind' to 'type'):

struct NumaOptions {
    /* Members inherited from NumaCommonOptions: */
    NumaDriver type;
    /* Own members: */
    union { /* union tag is @type */
        void *data;
        NumaNodeOptions *node;
    };
};

but my proposal to keep QMP compatibility would generate an incompatible layer of boxing:

struct NumaOptions {
    /* Members inherited from NumaCommonOptions: */
    NumaDriver type;
    /* Own members: */
    union { /* union tag is @type */
        void *data;
        NumaNodeOptionsWrapper *node;
    };
};

So, in conclusion, since no existing QMP command used the old type, and your choice of changes preserved the generated struct layout, it means we have no change to command line parsing and no user-visible changes to worry about. And I'm fine with this patch, once you improve the commit message and rebase to mainline:

Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
#9 lore raw

Re: [Qemu-devel] [PATCH v2 03/49] qapi: convert NumaOptions into a flat union

In reply to Eduardo Habkost
Quoted 2 lines · Eduardo Habkost

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.

Quoted 11 lines
Quoted 10 lines
Quoted 6 lines

qapi-schema.json line 3572

Quoted 3 lines
qapi-schema.json +3 -0
+##
+{ '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.

Quoted 5 lines

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'.

Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
#12 lore raw

Re: [Qemu-devel] [PATCH v2 04/49] net: remove NetLegacy struct

In reply to Kővágó, Zoltán
Quoted 17 lines · Zoltán

NetLegacy is just Netdev with some extra fields (name, vlan) and an optional id. This patch merges the two structs, and net_client_init1 got some extra checks to make sure only accept valid -netdev command lines. This is some extra work, but allows us to uniformly manage both legacy -net and non-legacy -netdev in code.

---
 net/net.c        | 42 +++++++++++++++++++++---------------------
 qapi-schema.json | 30 +++++++++---------------------
 2 files changed, 30 insertions(+), 42 deletions(-)
net/net.c +0 -0
index 28a5597..10fbaca 100644

net/net.c static int (* const net_client_init_fun[NET_CLIENT_OPTIONS_KIND_MAX])( · line 914

Quoted 5 lines
net/net.c +1 -1
@@ -911,17 +911,29 @@ static int (* const net_client_init_fun[NET_CLIENT_OPTIONS_KIND_MAX])(
 };
 
 
-static int net_client_init1(const void *object, int is_netdev, Error **errp)
+static int net_client_init1(const Netdev *netdev, int is_netdev, Error **errp)

I'm really hoping to fix QMP netdev_add to use a flat union type from the get-go rather than its current type-unsafe gunk. It may be safer from the point of view of this patch to wait for that to land first (among others, we'll want:
https://lists.gnu.org/archive/html/qemu-devel/2015-08/msg02093.html)

So I'm reluctant to review this right now, if it will just add churn into getting that part done correctly.

Don't throw this away just yet, because I'm not sure if QMP netdev_add needs to interact with command-line NetdevLegacy. But be aware that it is still an area under active debate/development.

Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
Reviewed-by on v2 5/49
#14 lore raw

Re: [Qemu-devel] [PATCH v2 05/49] net: use Netdev instead of NetClientOptions in client init

In reply to Kővágó, Zoltán
Quoted 4 lines · Zoltán

This way we no longer need NetClientOptions and can convert Netdev into a flat union.

Quoted 14 lines
---
 net/clients.h    | 20 ++++++++++----------
 net/dump.c       |  6 +++---
 net/hub.c        |  6 +++---
 net/l2tpv3.c     |  6 +++---
 net/net.c        | 29 ++++++++++++++---------------
 net/netmap.c     |  4 ++--
 net/slirp.c      |  6 +++---
 net/socket.c     |  6 +++---
 net/tap-win32.c  |  6 +++---
 net/tap.c        | 12 ++++++------
 net/vde.c        |  6 +++---
 net/vhost-user.c |  6 +++---
 12 files changed, 56 insertions(+), 57 deletions(-)

Nice; you've already done some of the work that I saw as needing to be done for my plans to convert QMP netdev_add to use a flat union instead of 'gen':false.

Conflicts with my s/kind/type/ in
https://lists.gnu.org/archive/html/qemu-devel/2015-08/msg02061.html, so whoever goes in first gets to avoid the obvious merge conflict resolution. :)

Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
#15 lore raw

Re: [Qemu-devel] [PATCH v2 05/49] net: use Netdev instead of NetClientOptions in client init

Quoted 24 lines · Eric Blake
Quoted 4 lines · Zoltán

This way we no longer need NetClientOptions and can convert Netdev into a flat union.

Quoted 14 lines
---
 net/clients.h    | 20 ++++++++++----------
 net/dump.c       |  6 +++---
 net/hub.c        |  6 +++---
 net/l2tpv3.c     |  6 +++---
 net/net.c        | 29 ++++++++++++++---------------
 net/netmap.c     |  4 ++--
 net/slirp.c      |  6 +++---
 net/socket.c     |  6 +++---
 net/tap-win32.c  |  6 +++---
 net/tap.c        | 12 ++++++------
 net/vde.c        |  6 +++---
 net/vhost-user.c |  6 +++---
 12 files changed, 56 insertions(+), 57 deletions(-)

Nice; you've already done some of the work that I saw as needing to be done for my plans to convert QMP netdev_add to use a flat union instead of 'gen':false.

Quoted 6 lines

Conflicts with my s/kind/type/ in
https://lists.gnu.org/archive/html/qemu-devel/2015-08/msg02061.html, so whoever goes in first gets to avoid the obvious merge conflict resolution. :)

By the way, I was able to get this patch to work without using 4/49 by changing the diff to net_client_init1() to be just the following:

net/net.c +0 -0
index 28a5597..4d99b48 100644
@@ -914,11 +914,13 @@ static int (* const

net_client_init_fun[NET_CLIENT_OPTIONS_KIND_MAX])(
static int net_client_init1(const void *object, int is_netdev, Error
**errp)

 {
     const NetClientOptions *opts;
+    Netdev legacy = {0};
+    const Netdev *netdev;
     const char *name;
     NetClientState *peer = NULL;

     if (is_netdev) {
-        const Netdev *netdev = object;
+        netdev = object;
         opts = netdev->opts;
         name = netdev->id;

@@ -931,7 +933,9 @@ static int net_client_init1(const void *object, int is_netdev, Error **errp)

         }
     } else {
         const NetLegacy *net = object;
-        opts = net->opts;
+        legacy.id = net->id;
+        opts = legacy.opts = net->opts;
+        netdev = &legacy;
         /* missing optional values have been initialized to "all bits
zero" */
         name = net->has_id ? net->id : net->name;

@@ -958,7 +962,7 @@ static int net_client_init1(const void *object, int is_netdev, Error **errp)

         }
     }

- if (net_client_init_fun[opts->kind](opts, name, peer, errp) < 0) {

+    if (net_client_init_fun[opts->kind](netdev, name, peer, errp) < 0) {
         /* FIXME drop when all init functions store an Error */
         if (errp && !*errp) {
             error_setg(errp, QERR_DEVICE_INIT_FAILED,

I may end up using a modified version of your patch in my submission for QMP netdev_add, while still avoiding the merge of NetdevLegacy (I'm not sold on that one yet, because it exists only for the command line and not for QMP, while we want to make QMP become typesafe).

Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
#17 lore raw

Re: [Qemu-devel] [PATCH v2 06/49] qapi: change Netdev into a flat union

In reply to Kővágó, Zoltán
Quoted 6 lines · Zoltán

Except qapi-schema.json, this patch was generated by:

find . -name .git -prune -o -type f \! -name '*~' -print0 | \

  xargs -0 sed -i \
    -e 's/NetClientOptionsKind/NetClientDriver/g' \
    -e 's/NET_CLIENT_OPTIONS_KIND_/NET_CLIENT_DRIVER_/g' \

Same question as in 3 about whether 'driver' is the right name for the new enum.

Quoted 7 lines
    -e 's/netdev->opts/netdev/g'

---

 qapi-schema.json                 | 36 +++++++++++------
 45 files changed, 166 insertions(+), 154 deletions(-)

So the bulk is mechanical 1:1 replacement, and the qapi change adds a net of 12 lines.

hw/arm/musicpal.c static void eth_cleanup(NetClientState *nc) · line 377

Quoted 11 lines
hw/arm/musicpal.c +1 -1
index 42f66b3..94bdf5f 100644
@@ -374,7 +374,7 @@ static void eth_cleanup(NetClientState *nc)
 }
 
 static NetClientInfo net_mv88w8618_info = {
-    .type = NET_CLIENT_OPTIONS_KIND_NIC,
+    .type = NET_CLIENT_DRIVER_NIC,

You know, if we could teach qapi to allow a user-named type with 'Kind' as the suffix, we wouldn't have quite as much churn :)

Quoted 6 lines
hw/arm/musicpal.c +1 -1
+++ b/qapi-schema.json
@@ -2474,16 +2474,31 @@
     '*vhostforce':    'bool' } }
 
 ##
-# @NetClientOptions

hw/arm/musicpal.c line 2485

Quoted 10 lines
hw/arm/musicpal.c +8 -1
+# @NetClientDriver
 #
-# A discriminated record of network device traits.
+# Available netdev drivers.
+#
+# Since 2.5
+##
+{ 'enum': 'NetClientDriver',
+  'data': [ 'none', 'nic', 'user', 'tap', 'l2tpv3', 'socket', 'vde', 'dump',
+            'bridge', 'hubport', 'netmap', 'vhost-user' ] }

Hmm; maybe 'Driver' really is the right name for this enum.

hw/arm/musicpal.c line 2496

Quoted 11 lines
hw/arm/musicpal.c +7 -0
+
+##
+# @Netdev
+#
+# Captures the configuration of a network device.
 #
 # Since 1.2
 #
 # 'l2tpv3' - since 2.1
+# @id #optional - since 2.5
+# @vlan, @name - since 2.5

I'd document id and vlan prior to the initial 'Since 1.2', then leave the only thing after that line to be just the list of when later drivers were added to the union. Actually, depending on what I decide about 4/49, we may not even be adding vlan and name, and id might not be optional, since that was just NetdevLegacy. And if we do merge NetdevLegacy, then it's better to have separate lines for @vlan and @name, as well as the documentation of when they can be set.

hw/arm/musicpal.c line 2514

Quoted 11 lines
hw/arm/musicpal.c +3 -1
 #
 ##
-{ 'union': 'NetClientOptions',
+{ 'union': 'Netdev',
+  'base': 'NetdevBase',
+  'discriminator': 'type',
   'data': {
     'none':     'NetdevNoneOptions',
     'nic':      'NetLegacyNicOptions',
@@ -2499,9 +2514,9 @@
     'vhost-user': 'NetdevVhostUserOptions' } }

QMP wise (if we were to use Netdev in QMP), this is changing:

{ "command":"foo", "arguments": {
    "id":"abc", "opts" { "type":"dump", "data": {
        "len":1024, "file":"/path/to/foo" } } } }

into

{ "command":"foo", "arguments": {
    "id":"abc", "type":"dump",
    "len":1024, "file":"/path/to/foo" } }

Wow - removing two levels of nesting in one patch. Even cooler, this LOOKS a lot like what QMP 'netdev_add' already parses :)

The corresponding C code loses one layer of boxing (because, as I already pointed out on 3, converting from simple to flat union without creating data wrappers loses one layer of nesting in QMP with no change to the nesting in the matching generated C structure).

So, if we can _avoid_ merging in NetdevLegacy stuff here (but that has knock-on effects, because my hack to use 5/49 without 4/49 doesn't quite work with the sed statement you used here), then you have just created the solution for netdev_add. I'll use your patch as a starting point, coupled with my pending work to allow a boxed flat union as the direct argument to a QMP command.

Quoted 21 lines
hw/arm/musicpal.c +3 -7
 ##
-# @Netdev
+# @NetdevBase
 #
-# Captures the configuration of a network device.
+# Captures the common configuration of a network device.
 #
 # @vlan: #optional vlan number (legacy, forbidden with -netdev)
 #
@@ -2510,19 +2525,16 @@
 # @name: #optional identifier for monitor commands, ignored if @id is present
 #        (legacy, forbidden with -netdev)
 #
-# @opts: device type specific properties (legacy)
+# @type: the netdev driver to use
 #
-# Since 1.2
-#
-# @id #optional - since 2.5
-# @vlan, @name - since 2.5

hw/arm/musicpal.c line 2537

Quoted 10 lines
hw/arm/musicpal.c +3 -2
+# Since 2.5
 ##
-{ 'struct': 'Netdev',
+{ 'struct': 'NetdevBase',
   'data': {
     '*vlan': 'int32',
     '*id':   'str',
     '*name': 'str',
-    'opts':  'NetClientOptions' } }
+    'type':  'NetClientDriver' } }

This is where I'm not completely sold that the merge from NetdevLegacy makes sense. Like I said, I'm playing with it some on my tree.

Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
Reviewed-by on v2 7/49
#19 lore raw

Re: [Qemu-devel] [PATCH v2 07/49] qapi: reorder NetdevBase and Netdev

In reply to Kővágó, Zoltán
Quoted 7 lines · Zoltán

Probably more logical if NetdevBase comes before Netdev. No schematic changes.

---
 qapi-schema.json | 46 +++++++++++++++++++++++-----------------------
 1 file changed, 23 insertions(+), 23 deletions(-)

Just code motion; doesn't affect generated output or semantics.

But does depend on my earlier comments about whether the merge with NetdevLegacy was right. So it may hit merge conflicts, depending on where I go with that; in which case dropping the patch altogether may be easiest.

Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
#22 lore raw

Re: [Qemu-devel] [PATCH v2 09/49] qapi: support nested structs in OptsVisitor

In reply to Kővágó, Zoltán
Quoted 9 lines · Zoltán

The current OptsVisitor flattens the whole structure, if there are same named fields under different paths (like in' and out' in Audiodev'), the current visitor can't cope with them (for example setting frequency=44100' will set the in's frequency to 44100 and leave out's frequency unspecified).

This patch fixes it, by always requiring a complete path in case of nested structs. Fields in the path are separated by dots, similar to C structs (without pointers), like in.frequency' orout.frequency'.

s/orout/or out/

Quoted 2 lines

You must provide a full path even in non-ambigous cases. The qapi

s/ambigous/ambiguous/

Quoted 2 lines

flattening commits hopefully ensures that this change doesn't create backward compatibility problems.

Give me some more time to think about 8 and 9 (it's nearly the start of a 3-day weekend for me). I know I said I'd look at these patches before Monday, but for now you'll have to live with my review on just 1-7. Oh well. I know what I'm starting on next week when I return :)

And we still have plenty of time before qemu 2.5 to get things right.

Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
#65 lore raw
In reply to Eric Blake

2015-09-03 17:07 keltezéssel, Eric Blake írta:

Quoted 31 lines · Gerd Hoffmann
Quoted 18 lines · Zoltán
Quoted 12 lines

This patch series adds support to multiple audio backends. Afterwards I add support to multiple backends. Audio fronteds gain a new audiodev option to specify the id of the audiodev to use. The audiodev= option is required, unless you use the old environment variable based configuration, in that case it must not used (and you can't use multiple backends).

Finally I also make mixeng usage optional, it can save us some useless format converting when not needed. Also makes easier to support formats currently not supported by qemu (as only the backend has to support it, not the mixeng).

Quoted 4 lines

For easier testing pull https://github.com/DirtYiCE/qemu.git tag audio-multi-v2.

Please review.

Quoted 7 lines

Adding qapi & net folks to Cc. Ping.

How to go forward with the QAPI bits in this series (Patches 1-9)? Patch #1 got reviews from block folks. Patch #3 has a comment from Eduardo pending. What about the other ones? Fine as-is? I remember from the pre-2.4 freeze discussions that there at least was agreement that flattening the qapi structs is the way to go.

Still on my list of patches to review (seems to be a rather large list, sadly). I should get to it before Monday.

Quoted 1 line
Quoted 7 lines
Quoted 3 lines

I'd prefer if the qapi maintainers can pick up and merge these patches. But I can also merge them via audio queue if I get reviews from the qapi maintainers.

I'll leave it up to Markus on which tree is better for the qapi patches to go through.

Okay, I've rebased the patches to master and applied (some of) the changes suggested by Eric. Since it looks like there are still some problems with the qapi parts, it may be better if I split out the qapi patches into a separate series, and go back to the audio patches when the qapi bits are merged. Should I go ahead?

Zoltan

#66 lore raw
Quoted 40 lines · Kővágó Zoltán

2015-09-03 17:07 keltezéssel, Eric Blake írta:

Quoted 31 lines · Gerd Hoffmann
Quoted 18 lines · Zoltán
Quoted 12 lines

This patch series adds support to multiple audio backends. Afterwards I add support to multiple backends. Audio fronteds gain a new audiodev option to specify the id of the audiodev to use. The audiodev= option is required, unless you use the old environment variable based configuration, in that case it must not used (and you can't use multiple backends).

Finally I also make mixeng usage optional, it can save us some useless format converting when not needed. Also makes easier to support formats currently not supported by qemu (as only the backend has to support it, not the mixeng).

Quoted 4 lines

For easier testing pull https://github.com/DirtYiCE/qemu.git tag audio-multi-v2.

Please review.

Quoted 7 lines

Adding qapi & net folks to Cc. Ping.

How to go forward with the QAPI bits in this series (Patches 1-9)? Patch #1 got reviews from block folks. Patch #3 has a comment from Eduardo pending. What about the other ones? Fine as-is? I remember from the pre-2.4 freeze discussions that there at least was agreement that flattening the qapi structs is the way to go.

Still on my list of patches to review (seems to be a rather large list, sadly). I should get to it before Monday.

Quoted 1 line
Quoted 7 lines
Quoted 3 lines

I'd prefer if the qapi maintainers can pick up and merge these patches. But I can also merge them via audio queue if I get reviews from the qapi maintainers.

I'll leave it up to Markus on which tree is better for the qapi patches to go through.

Quoted 5 lines

Okay, I've rebased the patches to master and applied (some of) the changes suggested by Eric. Since it looks like there are still some problems with the qapi parts, it may be better if I split out the qapi patches into a separate series, and go back to the audio patches when the qapi bits are merged. Should I go ahead?

Given the size of this series, splitting it up into separately reviewable parts sounds like an excellent idea.