On Thu, May 11, 2023 at 14:14:49 +0200, Michal Privoznik wrote:
You'd expect to see src/qemu/qemu_capabilities.c changed,
wouldn't you.
Well, there's no way to query for supported audio backends, see:
https://gitlab.com/libvirt/libvirt/-/issues/473
Note that you can already query whether qemu was _compiled_ with the
support for an audio backend. You can't query whether (if modular build
is done) the audio backend driver is actually installed.
In your case it would be done by:
{ "query-audiodevs/ret-type/+pipewire", QEMU_CAPS_QUERY_AUDIODEVS_PIPEWIRE }
and would require a new capability dump. I can do the latter if you
want.
Given that here it's only a explicit user configuration, I don't think
it's entirely necessary to have capability checks.