[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 00/24] qom: Convert some properties to class properties
From: |
Li Qiang |
Subject: |
Re: [PATCH 00/24] qom: Convert some properties to class properties |
Date: |
Tue, 22 Sep 2020 09:47:57 +0800 |
Eduardo Habkost <ehabkost@redhat.com> 于2020年9月22日周二 上午6:11写道:
>
> Class properties make QOM introspection simpler and easier, as it
> doesn't require an object to be instantiated. This series
> converts a few existing object_property_add*() calls to register
> class properties instead.
>
Hello Eduardo,
IIUC, most of the properties can be dev-spec or class-spec.
Do we have any principle or rule to specify the property to be dev or class?
Maybe if the property which is always the same between instances can
be a class-property?
Thanks,
Li Qiang
> Eduardo Habkost (24):
> cryptodev-vhost-user: Register "chardev" as class property
> cryptodev-backend: Register "chardev" as class property
> rng-egd: Register "chardev" as class property
> rng-random: register "filename" as class property
> vhost-user: Register "chardev" as class property
> vexpress: Register "secure" as class property
> rng: Register "opened" as class property
> vexpress-a15: Register "virtualization" as class property
> input-linux: Register properties as class properties
> input-barrier: Register properties as class properties
> tmp421: Register properties as class properties
> s390x: Register all CPU properties as class properties
> i386: Register most CPU properties as class properties
> i386: Register feature bit properties as class properties
> arm/virt: Register most properties as class properties
> virt: Register "its" as class property
> cpu/core: Register core-id and nr-threads as class properties
> arm/cpu64: Register "aarch64" as class property
> xlnx-zcu102: Register properties as class properties
> machine: Register "memory-backend" as class property
> vga-pci: Register "big-endian-framebuffer" as class property
> i440fx: Register i440FX-pcihost properties as class properties
> sifive_e: Register "revb" as class property
> sifive_u: Register "start-in-flash" as class property
>
> target/s390x/internal.h | 1 -
> backends/cryptodev-vhost-user.c | 13 ++---
> backends/cryptodev.c | 8 +--
> backends/rng-egd.c | 9 +--
> backends/rng-random.c | 8 +--
> backends/rng.c | 8 +--
> backends/vhost-user.c | 6 +-
> hw/arm/vexpress.c | 25 +++++----
> hw/arm/virt.c | 88 ++++++++++++++++-------------
> hw/arm/xlnx-zcu102.c | 25 +++++----
> hw/core/machine.c | 12 ++--
> hw/cpu/core.c | 8 +--
> hw/display/vga-pci.c | 12 ++--
> hw/misc/tmp421.c | 30 +++++-----
> hw/pci-host/i440fx.c | 32 +++++------
> hw/riscv/sifive_e.c | 11 ++--
> hw/riscv/sifive_u.c | 16 +++---
> target/arm/cpu64.c | 16 ++----
> target/i386/cpu.c | 99 +++++++++++++++++----------------
> target/s390x/cpu.c | 1 -
> target/s390x/cpu_models.c | 35 ++++++------
> ui/input-barrier.c | 44 +++++++--------
> ui/input-linux.c | 27 ++++-----
> 23 files changed, 262 insertions(+), 272 deletions(-)
>
> --
> 2.26.2
>
>
- Re: [PATCH 23/24] sifive_e: Register "revb" as class property, (continued)
- [PATCH 17/24] cpu/core: Register core-id and nr-threads as class properties, Eduardo Habkost, 2020/09/21
- [PATCH 18/24] arm/cpu64: Register "aarch64" as class property, Eduardo Habkost, 2020/09/21
- [PATCH 20/24] machine: Register "memory-backend" as class property, Eduardo Habkost, 2020/09/21
- [PATCH 24/24] sifive_u: Register "start-in-flash" as class property, Eduardo Habkost, 2020/09/21
- [PATCH 22/24] i440fx: Register i440FX-pcihost properties as class properties, Eduardo Habkost, 2020/09/21
- Re: [PATCH 00/24] qom: Convert some properties to class properties,
Li Qiang <=
- Re: [PATCH 00/24] qom: Convert some properties to class properties, no-reply, 2020/09/21
- Re: [PATCH 00/24] qom: Convert some properties to class properties, Eduardo Habkost, 2020/09/22