From: Markus Armbruster <armbru@redhat.com>
To: Sergei Heifetz <heifetz@yandex-team.com>
Cc: 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>,
"Daniel P. Berrangé" <berrange@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: Thu, 19 Mar 2026 08:58:52 +0100 [thread overview]
Message-ID: <87ms04cksj.fsf@pond.sub.org> (raw)
In-Reply-To: <20260315201646.96862-8-heifetz@yandex-team.com> (Sergei Heifetz's message of "Mon, 16 Mar 2026 01:16:42 +0500")
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.
Do we need a release note?
Do we need an entry in docs/about/removed-features.rst? Feels a bit
odd; we're not removing a feature, we're adding one, namely "can compile
out audio".
>
> ##
> # @DisplayGLMode:
> diff --git a/qemu-options.hx b/qemu-options.hx
> index 29dc865820a..20d15c0004f 100644
> --- a/qemu-options.hx
> +++ b/qemu-options.hx
> @@ -2232,6 +2232,10 @@ SRST
> If no audio backend is specified and the dbus display backend is
> specified, the dbus audio backend is used by default.
>
> + (If audio is disabled at compile time via the ``--disable-audio`` option,
> + no audio backend is used, and none of the audio-related D-Bus interfaces
> + are exported.)
> +
Well, audio is either compiled in or it isn't.
If it's compiled in, then why tell the user how things behave when it's
not?
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?
> The connection is registered with the "org.qemu" name (and queued when
> already owned).
>
[...]
next prev parent reply other threads:[~2026-03-19 7:59 UTC|newest]
Thread overview: 14+ 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-03-15 20:16 ` [PATCH v3 03/11] tests/qtest: remove -audio none " Sergei Heifetz
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 [this message]
2026-03-15 20:16 ` [PATCH v3 08/11] tests/audio: do not compile if " 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-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
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=87ms04cksj.fsf@pond.sub.org \
--to=armbru@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=berrange@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox