Re: [PATCH 02/10] hw/audio/virtio-sound: allocate all streams in advance

2024-01-06 Thread Volker Rümelin
Am 05.01.24 um 11:54 schrieb Marc-André Lureau: > Hi > > On Fri, Jan 5, 2024 at 12:34 AM Volker Rümelin wrote: >> It is much easier to migrate an array of structs than individual >> structs that are accessed via a pointer to a pointer to an array >> of pointers to struct, where some pointers can a

Re: [PATCH 02/10] hw/audio/virtio-sound: allocate all streams in advance

2024-01-05 Thread Marc-André Lureau
Hi On Fri, Jan 5, 2024 at 12:34 AM Volker Rümelin wrote: > > It is much easier to migrate an array of structs than individual > structs that are accessed via a pointer to a pointer to an array > of pointers to struct, where some pointers can also be NULL. > > For this reason, the audio streams ar

[PATCH 02/10] hw/audio/virtio-sound: allocate all streams in advance

2024-01-04 Thread Volker Rümelin
It is much easier to migrate an array of structs than individual structs that are accessed via a pointer to a pointer to an array of pointers to struct, where some pointers can also be NULL. For this reason, the audio streams are already allocated during the realization phase and all stream variab