Re: [PULL 2/3] hw/audio/virtio-snd: fix invalid param check

2024-08-29 Thread Volker Rümelin
Cc: qemu-sta...@nongnu.org Without this patch, the virtio-sound device will not work in the next QEMU stable-8.2 and stable-9.0 versions. With best regards, Volker > From: Volker Rümelin > > Commit 9b6083465f ("virtio-snd: check for invalid param shift > operands") tries to prevent invalid para

[PULL 2/3] hw/audio/virtio-snd: fix invalid param check

2024-08-20 Thread Michael S. Tsirkin
From: Volker Rümelin Commit 9b6083465f ("virtio-snd: check for invalid param shift operands") tries to prevent invalid parameters specified by the guest. However, the code is not correct. Change the code so that the parameters format and rate, which are a bit numbers, are compared with the bit s