[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 08/12] qom: allow for properties to become "fixed"
From: |
Markus Armbruster |
Subject: |
Re: [PATCH 08/12] qom: allow for properties to become "fixed" |
Date: |
Mon, 17 Apr 2023 12:02:33 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Alex Bennée <alex.bennee@linaro.org> 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ée <alex.bennee@linaro.org>
> ---
> 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' } }
>
qom-list and qom-list-properties return a list of this. Use cases for
the new member?
[...]
- [PATCH 06/12] virtio: add PCI stub for vhost-user-device, (continued)
- [PATCH 06/12] virtio: add PCI stub for vhost-user-device, Alex Bennée, 2023/04/14
- [PATCH 01/12] hw/virtio: fix typo in VIRTIO_CONFIG_IRQ_IDX comments, Alex Bennée, 2023/04/14
- [PATCH 12/12] docs/system: add a basic enumeration of vhost-user devices, Alex Bennée, 2023/04/14
- [PATCH 11/12] hw/virtio: derive vhost-user-gpio from vhost-user-device (!BROKEN), Alex Bennée, 2023/04/14
- [PATCH 05/12] virtio: add generic vhost-user-device, Alex Bennée, 2023/04/14
- [PATCH 09/12] hw/virtio: derive vhost-user-rng from vhost-user-device, Alex Bennée, 2023/04/14
- [PATCH 04/12] include/hw/virtio: document some more usage of notifiers, Alex Bennée, 2023/04/14
- [PATCH 10/12] hw/virtio: add config support to vhost-user-device, Alex Bennée, 2023/04/14
- [PATCH 08/12] qom: allow for properties to become "fixed", Alex Bennée, 2023/04/14
- Re: [PATCH 08/12] qom: allow for properties to become "fixed",
Markus Armbruster <=
- [PATCH 07/12] include: attempt to document device_class_set_props, Alex Bennée, 2023/04/14
- Re: [PATCH 00/12] virtio: add vhost-user-generic and reduce copy and paste, Viresh Kumar, 2023/04/17
- Re: [PATCH 00/12] virtio: add vhost-user-generic and reduce copy and paste, Stefan Hajnoczi, 2023/04/17