All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: "Daniel P. Berrangé" <berrange@redhat.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>,
	 Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>,
	 qemu-block@nongnu.org, qemu-devel@nongnu.org,
	 eblake@redhat.com,  dave@treblig.org, eduardo@habkost.net,
	 pbonzini@redhat.com,  hreitz@redhat.com, kwolf@redhat.com,
	 raphael.norwitz@nutanix.com,  yc-core@yandex-team.ru,
	den-plotnikov@yandex-team.ru,  daniil.tatianin@yandex.ru
Subject: Re: [PATCH 4/4] qapi: introduce CONFIG_READ event
Date: Thu, 19 Oct 2023 09:10:21 +0200	[thread overview]
Message-ID: <87y1fzjdeq.fsf@pond.sub.org> (raw)
In-Reply-To: <ZS/KhowbXegXtYxA@redhat.com> ("Daniel P. Berrangé"'s message of "Wed, 18 Oct 2023 13:07:34 +0100")

Daniel P. Berrangé <berrange@redhat.com> writes:

> On Wed, Oct 18, 2023 at 02:02:08PM +0200, Markus Armbruster wrote:
>> Daniel P. Berrangé <berrange@redhat.com> writes:
>> 
>> > On Wed, Oct 18, 2023 at 06:51:41AM -0400, Michael S. Tsirkin wrote:
>> >> On Wed, Oct 18, 2023 at 12:36:10PM +0200, Markus Armbruster wrote:
>> >> > > x- seems safer for management tool that doesn't know about "unstable" properties..
>> >> > 
>> >> > Easy, traditional, and unreliable :)
>> >> 
>> >> > > But on the other hand, changing from x- to no-prefix is already
>> >> > > done when the feature is stable, and thouse who use it already
>> >> > > use the latest version of interface, so, removing the prefix is
>> >> > > just extra work.
>> >> > 
>> >> > Exactly.
>> >> > 
>> >> 
>> >> I think "x-" is still better for command line use of properties - we
>> >> don't have an API to mark things unstable there, do we?
>> >
>> > Personally I like to see "x-" prefix present *everywhere* there is
>> > an unstable feature, and consider the need to rename when declaring
>> > it stable to be good thing as it sets an easily identifiable line
>> > in the sand and is self-evident to outside observers.
>> >
>> > The self-documenting nature of the "x-" prefer is what makes it most
>> > compelling to me. A patch submission, or command line invokation or
>> > an example QMP command, or a bug report, that exhibit an 'x-' prefix
>> > are an immediate red flag to anyone who sees them.
>> 
>> Except when it isn't, like in "x-origin".
>> 
>> > If someone sees a QMP comamnd / a typical giant QEMU command line,
>> > they are never going to go look at the QAPI schema to check whether
>> > any feature used had an 'unstable' marker. The 'unstable' marker
>> > might as well not exist in most cases.
>> >
>> > IOW, having the 'unstable' flag in the QAPI schema is great for machine
>> > introspection, but it isn't a substitute for having an 'x-' prefix used
>> > for the benefit of humans IMHO.
>> 
>> I'm not sure there's disagreement.  Quoting myself:
>> 
>>     The "x-" can remind humans "this is unstable" better than a feature
>>     flag can (for machines, it's the other way round).
>> 
>> CLI and HMP are for humans.  We continue to use "x-" there.
>> 
>> QMP is for machines.  The feature flag is the sole source of truth.
>> Additional use of "x-" is fine, but not required.
>
> I guess we have different defintions of "for humans" in this context.
> I consider QMP  data still relevant for humans, because humans are
> reviewing patches to libvirt that add usage of QMP features, or

There's a much more reliable way:

1. Require tests

2. Run them with -compat unstable-input=reject,unstable-output=hide

   Or unstable-input=crash if you don't trust or don't want to rely on
   your test harness.

> triaging bug reports that include examples of usage,

Here you can run the reproducer with -compat.

>                                                      and in both
> cases it is pretty relevant to make unstable features stand out to
> the human via the x- prefix IMHO.

Your point remains at least somewhat valid all the same.



  parent reply	other threads:[~2023-10-19  7:11 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-06 20:20 [PATCH 0/4] vhost-user-blk: live resize additional APIs Vladimir Sementsov-Ogievskiy
2023-10-06 20:20 ` [PATCH 1/4] vhost-user-blk: simplify and fix vhost_user_blk_handle_config_change Vladimir Sementsov-Ogievskiy
2023-10-23  9:31   ` Raphael Norwitz
2023-10-06 20:20 ` [PATCH 2/4] qapi: introduce device-sync-config Vladimir Sementsov-Ogievskiy
2023-10-17 14:57   ` Markus Armbruster
2023-10-17 15:32     ` Vladimir Sementsov-Ogievskiy
2023-10-18  6:08       ` Markus Armbruster
2023-10-06 20:20 ` [PATCH 3/4] qapi: device-sync-config: check runstate Vladimir Sementsov-Ogievskiy
2023-10-06 20:20 ` [PATCH 4/4] qapi: introduce CONFIG_READ event Vladimir Sementsov-Ogievskiy
2023-10-17 15:00   ` Markus Armbruster
2023-10-17 15:44     ` Vladimir Sementsov-Ogievskiy
2023-10-18  6:47       ` Markus Armbruster
2023-10-18  8:51         ` Vladimir Sementsov-Ogievskiy
2023-10-18 10:36           ` Markus Armbruster
2023-10-18 10:51             ` Michael S. Tsirkin
2023-10-18 10:59               ` Daniel P. Berrangé
2023-10-18 12:02                 ` Markus Armbruster
2023-10-18 12:07                   ` Daniel P. Berrangé
2023-10-18 14:33                     ` Dr. David Alan Gilbert
2023-10-19  7:05                       ` Markus Armbruster
2023-10-19  7:10                     ` Markus Armbruster [this message]
2023-10-18 12:39                   ` Vladimir Sementsov-Ogievskiy
2023-10-19  7:01                     ` Markus Armbruster

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=87y1fzjdeq.fsf@pond.sub.org \
    --to=armbru@redhat.com \
    --cc=berrange@redhat.com \
    --cc=daniil.tatianin@yandex.ru \
    --cc=dave@treblig.org \
    --cc=den-plotnikov@yandex-team.ru \
    --cc=eblake@redhat.com \
    --cc=eduardo@habkost.net \
    --cc=hreitz@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=raphael.norwitz@nutanix.com \
    --cc=vsementsov@yandex-team.ru \
    --cc=yc-core@yandex-team.ru \
    /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.