Here is the first part of my virtio-sound patches. Most of them are a preparation to make migration work. Patch 09/10 enables migration of the virtio-sound device.
The second part isn't finished yet and will have to do with virtio-sound jack and channel maps configuration and migration. Volker Rümelin (10): hw/audio/virtio-sound: remove command and stream mutexes hw/audio/virtio-sound: allocate all streams in advance hw/audio/virtio-sound: split out virtio_snd_pcm_start_stop() hw/audio/virtio-sound: add stream state variable hw/audio/virtio-sound: return correct command response size hw/audio/virtio-sound: introduce virtio_snd_pcm_open() hw/audio/virtio-sound: introduce virtio_snd_set_active() hw/audio/virtio-sound: fix segmentation fault in tx/rx xfer handler hw/audio/virtio-sound: add missing vmstate fields hw/audio/virtio-sound: add placeholder for buffer write position hw/audio/trace-events | 3 +- hw/audio/virtio-snd.c | 771 +++++++++++++++++++--------------- include/hw/audio/virtio-snd.h | 36 +- 3 files changed, 441 insertions(+), 369 deletions(-) -- 2.35.3