From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Markus Armbruster References: <20230414160433.2096866-1-alex.bennee@linaro.org> <20230414160433.2096866-9-alex.bennee@linaro.org> Date: Mon, 17 Apr 2023 12:02:33 +0200 In-Reply-To: <20230414160433.2096866-9-alex.bennee@linaro.org> ("Alex =?utf-8?Q?Benn=C3=A9e=22's?= message of "Fri, 14 Apr 2023 17:04:29 +0100") Message-ID: <87bkjmddxi.fsf@pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Virtio-fs] [PATCH 08/12] qom: allow for properties to become "fixed" List-Id: Development discussions about virtio-fs List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex =?utf-8?Q?Benn=C3=A9e?= Cc: qemu-devel@nongnu.org, "Gonglei (Arei)" , Paolo Bonzini , "Michael S. Tsirkin" , virtio-fs@redhat.com, Erik Schilling , =?utf-8?Q?Marc-Andr=C3=A9?= Lureau , Eduardo Habkost , Stefan Hajnoczi , Eric Blake , "Daniel P. =?utf-8?Q?Berrang=C3=A9?=" , Jason Wang , Viresh Kumar , Mathieu Poirier , Gerd Hoffmann Alex Benn=C3=A9e writes: > When specialising general purpose objects it is sometimes useful to > "fix" some of the properties that were configurable by the base > classes. We will use this facility when specialising > vhost-user-device. > > Signed-off-by: Alex Benn=C3=A9e > --- > qapi/qom.json | 2 ++ > include/qom/object.h | 16 +++++++++++++++- > qom/object.c | 14 ++++++++++++++ > qom/object_interfaces.c | 9 ++++++--- > qom/qom-qmp-cmds.c | 1 + > softmmu/qdev-monitor.c | 1 + > 6 files changed, 39 insertions(+), 4 deletions(-) > > diff --git a/qapi/qom.json b/qapi/qom.json > index a877b879b9..4cda191f00 100644 > --- a/qapi/qom.json > +++ b/qapi/qom.json > @@ -33,12 +33,14 @@ > # @description: if specified, the description of the property. > # > # @default-value: the default value, if any (since 5.0) > +# @fixed: if specified if value has been fixed (since 8.1) Wat? > # > # Since: 1.2 > ## > { 'struct': 'ObjectPropertyInfo', > 'data': { 'name': 'str', > 'type': 'str', > + 'fixed': 'bool', > '*description': 'str', > '*default-value': 'any' } } >=20=20 qom-list and qom-list-properties return a list of this. Use cases for the new member? [...]