[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 0/5] qdev-properties: Try to improve use of dynamic property
From: |
Philippe Mathieu-Daudé |
Subject: |
[RFC PATCH 0/5] qdev-properties: Try to improve use of dynamic property introspection |
Date: |
Tue, 2 Jan 2024 17:04:49 +0100 |
Hi,
This RFC series tries to work over some limitations exposed in
9293e63b-8032-4ea0-b516-9db6949fb607@linaro.org/">https://lore.kernel.org/qemu-devel/9293e63b-8032-4ea0-b516-9db6949fb607@linaro.org/
Eventually all QDev objects would use static QOM properties,
but in some cases we can not. ARMv7MState is a such example
adding properties that might end up irrelevant.
This is just an example, but thinking long term (in particular
in the context of dynamic machines) I'm looking at how this
could be improved. Thus this series. I don't like much this
current approach (because more boiler place and complexity)
however this seems to DTRT for the user.
Philippe Mathieu-Daudé (5):
qdev-properties: Add qdev_property_del_static()
qdev-properties: Add OptionalBool QAPI type
hw/arm/armv7m: Convert ARMv7MState::vfp from bool to OptionalBool
hw/arm/armv7m: Error if trying to set unavailable ARMCPU::vfp property
hw/arm/armv7m: Do not expose 'vfp' property if ARM CPU doesn't have it
qapi/common.json | 16 ++++++++++++++++
include/hw/arm/armv7m.h | 2 +-
include/hw/qdev-properties.h | 7 +++++++
hw/arm/armsse.c | 2 +-
hw/arm/armv7m.c | 12 +++++++++++-
hw/core/qdev-properties.c | 17 +++++++++++++++++
6 files changed, 53 insertions(+), 3 deletions(-)
--
2.41.0
- [RFC PATCH 0/5] qdev-properties: Try to improve use of dynamic property introspection,
Philippe Mathieu-Daudé <=
- [RFC PATCH 3/5] hw/arm/armv7m: Convert ARMv7MState::vfp from bool to OptionalBool, Philippe Mathieu-Daudé, 2024/01/02
- [RFC PATCH 2/5] qdev-properties: Add OptionalBool QAPI type, Philippe Mathieu-Daudé, 2024/01/02
- [RFC PATCH 1/5] qdev-properties: Add qdev_property_del_static(), Philippe Mathieu-Daudé, 2024/01/02
- [RFC PATCH 4/5] hw/arm/armv7m: Error if trying to set unavailable ARMCPU::vfp property, Philippe Mathieu-Daudé, 2024/01/02
- [RFC PATCH 5/5] hw/arm/armv7m: Do not expose 'vfp' property if ARM CPU doesn't have it, Philippe Mathieu-Daudé, 2024/01/02
- Re: [RFC PATCH 0/5] qdev-properties: Try to improve use of dynamic property introspection, Kevin Wolf, 2024/01/09