From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: "Sergei Heifetz" <heifetz@yandex-team.com>,
qemu-devel@nongnu.org, "Eric Blake" <eblake@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
"Alex Bennée" <alex.bennee@linaro.org>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Marcel Apfelbaum" <marcel.apfelbaum@gmail.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Fabiano Rosas" <farosas@suse.de>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Eduardo Habkost" <eduardo@habkost.net>,
"Yanan Wang" <wangyanan55@huawei.com>,
"Zhao Liu" <zhao1.liu@intel.com>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Dr. David Alan Gilbert" <dave@treblig.org>,
"Thomas Huth" <thuth@redhat.com>,
"Laurent Vivier" <lvivier@redhat.com>,
"Gerd Hoffmann" <kraxel@redhat.com>,
devel@lists.libvirt.org
Subject: Re: [PATCH v3 07/11] ui/dbus: run without Audio interface when audio is disabled
Date: Wed, 1 Apr 2026 11:57:27 +0100 [thread overview]
Message-ID: <acz6F3rMuvfISQva@redhat.com> (raw)
In-Reply-To: <87ms04cksj.fsf@pond.sub.org>
On Thu, Mar 19, 2026 at 08:58:52AM +0100, Markus Armbruster wrote:
> Sergei Heifetz <heifetz@yandex-team.com> writes:
>
> > D-Bus display can be used even when QEMU is configured with
> > `--disable-audio`. In that case, audio interface will not be available
> > on `/org/qemu/Display1/Audio`.
> >
> > (The current handling of the situation when audio is enabled but
> > no D-Bus-compatible audio backend is available is different and
> > hasn’t been changed.)
> >
> > Signed-off-by: Sergei Heifetz <heifetz@yandex-team.com>
> > ---
> > qapi/ui.json | 2 +-
> > qemu-options.hx | 4 ++++
> > ui/dbus.c | 8 ++++++++
> > 3 files changed, 13 insertions(+), 1 deletion(-)
> >
> > diff --git a/qapi/ui.json b/qapi/ui.json
> > index e3da77632a8..62eb05c6091 100644
> > --- a/qapi/ui.json
> > +++ b/qapi/ui.json
> > @@ -1385,7 +1385,7 @@
> > 'data' : { '*rendernode' : 'str',
> > '*addr': 'str',
> > '*p2p': 'bool',
> > - '*audiodev': 'str' } }
> > + '*audiodev': { 'type': 'str', 'if': 'CONFIG_AUDIO' } } }
>
> Is this a compatibility break?
>
> DisplayDBus is only used in DisplayOptions, which is only used as return
> type of query-display-options in the QAPI schema. However, vl.c also
> uses it to parse -display.
>
> Removing parameter @audiodev from -display is technically a
> compatibility break. However, we're removing an optional paramater that
> would always be rejected when present: it has no valid value, because
> there are no audiodevs.
>
> Removal from query-display-options is similar: it could not be present.
>
> Removal affects introspection, which could conceivably confuse client.
> I don't expect such trouble here, because @audiodev always existed, i.e.
> there's no real reason to look for it in introspection.
>
> I think we're okay. I'm cc'ing the libvirt list just in case.
Libvirt will almost always add -audiodev to all VMs, even if that
ends up being '-audiodev none'. For VNC it will always set the
audiodev property to resolve to this. Essentially, given our
minimum QEMU version always supports -audiodev, libvirt assumes
it is always available.
> If it's not compiled in, then why document stuff that doesn't work? How
> much of -audiodev still works then? -audiodev none? Anything else?
IMHO, we need -audiodev none to always works, and other parts of the
schema should continue to accept audiodev.
With regards,
Daniel
--
|: https://berrange.com ~~ https://hachyderm.io/@berrange :|
|: https://libvirt.org ~~ https://entangle-photo.org :|
|: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
next prev parent reply other threads:[~2026-04-01 10:58 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-15 20:16 [PATCH v3 00/11] add build option to disable audio subsystem Sergei Heifetz
2026-03-15 20:16 ` [PATCH v3 01/11] audio: add `audio` build option for meson and Kconfig Sergei Heifetz
2026-03-15 20:16 ` [PATCH v3 02/11] ui/vnc: disable audio feature when configured with --disable-audio Sergei Heifetz
2026-04-01 10:07 ` Philippe Mathieu-Daudé
2026-04-01 21:54 ` Sergei Heifetz
2026-03-15 20:16 ` [PATCH v3 03/11] tests/qtest: remove -audio none " Sergei Heifetz
2026-04-01 10:08 ` Philippe Mathieu-Daudé
2026-03-15 20:16 ` [PATCH v3 04/11] hw/audio/pcspk: change PCSPK behaviour " Sergei Heifetz
2026-03-15 20:16 ` [PATCH v3 05/11] Kconfig: add AUDIO dependency to audio-related devices Sergei Heifetz
2026-03-15 20:16 ` [PATCH v3 06/11] system/vl: remove audio and audiodev options when audio is disabled Sergei Heifetz
2026-03-15 20:16 ` [PATCH v3 07/11] ui/dbus: run without Audio interface " Sergei Heifetz
2026-03-19 7:58 ` Markus Armbruster
2026-04-01 4:16 ` Sergei Heifetz
2026-04-01 10:43 ` Markus Armbruster
2026-04-01 21:06 ` Sergei Heifetz
2026-04-01 10:57 ` Daniel P. Berrangé [this message]
2026-03-15 20:16 ` [PATCH v3 08/11] tests/audio: do not compile if " Sergei Heifetz
2026-04-01 10:10 ` Philippe Mathieu-Daudé
2026-04-01 21:02 ` Sergei Heifetz
2026-03-15 20:16 ` [PATCH v3 09/11] audio: do not build audio-related sources with --disable-audio Sergei Heifetz
2026-03-19 8:36 ` Markus Armbruster
2026-04-01 4:20 ` Sergei Heifetz
2026-04-01 8:11 ` Markus Armbruster
2026-03-15 20:16 ` [PATCH v3 10/11] qom: remove audiodevs root container if audio is disabled Sergei Heifetz
2026-03-15 20:16 ` [PATCH v3 11/11] meson.build: ignore audio drivers when configured with --disable-audio Sergei Heifetz
2026-04-01 10:10 ` Philippe Mathieu-Daudé
2026-04-01 10:13 ` Philippe Mathieu-Daudé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=acz6F3rMuvfISQva@redhat.com \
--to=berrange@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=armbru@redhat.com \
--cc=dave@treblig.org \
--cc=devel@lists.libvirt.org \
--cc=eblake@redhat.com \
--cc=eduardo@habkost.net \
--cc=farosas@suse.de \
--cc=heifetz@yandex-team.com \
--cc=kraxel@redhat.com \
--cc=lvivier@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=thuth@redhat.com \
--cc=wangyanan55@huawei.com \
--cc=zhao1.liu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.