All of lore.kernel.org
 help / color / mirror / Atom feed
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: Wed, 01 Apr 2026 12:43:50 +0200	[thread overview]
Message-ID: <87cy0j2c61.fsf@pond.sub.org> (raw)
In-Reply-To: <DHHIZYXA11Y7.2Z6AXFKNESH3W@yandex-team.com> (Sergei Heifetz's message of "Wed, 01 Apr 2026 09:16:01 +0500")

"Sergei Heifetz" <heifetz@yandex-team.com> writes:

> On Thu Mar 19, 2026 at 12:58 PM +05, 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.
>
> These are questions I would like to know the answers to as well. From my
> perspective, disabling compilation of the audio subsystem is worth it,
> but you should expect to potentially tweak a few audio-related things to
> make it work. I agree that technically makes it a compatibility break.
> But preserving meaningless parameters (like audiodev in the total
> absence of audio) certainly makes less sense to me. 
>
>> 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".
>>
>
> Maybe we should add something like, "If you compile out audio, be
> careful with these things: [list of changes]". 
>
> But honestly, I don't know. I'd be happy to add whatever is needed.

I guess a brief release note should suffice.  As long as the affected
interfaces are obviously audio-related, enumerating them seems
unnecessary.

>>> +        (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?
>
> I agree it's weird, but I don't see a clear way around it. Simple
> ifdef'ing isn't possible in a reStructuredText section (at least I
> couldn't get it to work).

Context: this is in an SRST...ERST section of qemu-options.hx.

As far as I can tell, we simply ignore the possibility of the thing
being compiled out when we document a thing there.

Drop the patch hunk?

>> [...]



  reply	other threads:[~2026-04-01 10:44 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 [this message]
2026-04-01 21:06         ` Sergei Heifetz
2026-04-01 10:57     ` Daniel P. Berrangé
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=87cy0j2c61.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 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.