All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/9] hw/i386: convert object props to class props
@ 2026-07-03  9:07 Mark Cave-Ayland
  2026-07-03  9:07 ` [PATCH 1/9] qom/object.c: introduce object_alias_get_targetp() lookup function Mark Cave-Ayland
                   ` (8 more replies)
  0 siblings, 9 replies; 27+ messages in thread
From: Mark Cave-Ayland @ 2026-07-03  9:07 UTC (permalink / raw)
  To: pbonzini, richard.henderson, mst, mtosatti, berrange, qemu-devel

Since the use of object props is effectively deprecated, here is an attempt
to convert all use of object props in hw/i386 to class props. The eventual
aim is to continue working through the codebase, removing all remaining uses
of object props.

In order to facilitate the conversion of alias properties, this series
introduces a couple of new QOM functions: object_class_property_add_alias()
and object_property_set_alias() to declare the property and to set it within
an instance accordingly. This implementation is hugely inspired by the
existing link class property code: many thanks to Marc-André for doing this
initial work.

The series is lightly tested: it passes "make check", GitLab CI and some
simple local tests. I'm mostly interested for feedback on the conversion
strategy, and to get a feel for the best way to merge this series since once
the basic conversion patterns are in place, the same patterns can be applied
elsewhere and it would be good to minimise the merge window for such changes.

Signed-off-by: Mark Cave-Ayland <mark.caveayland@nutanix.com>


Mark Cave-Ayland (9):
  qom/object.c: introduce object_alias_get_targetp() lookup function
  qom/object.c: introduce object_class_property_add_alias()
  qom/object.c: introduce object_property_set_alias() function
  hw/i386/pc.c: convert pcspk-audiodev object prop to a class prop
  hw/rtc/mc146818rtc.c: convert date from object prop to class prop
  hw/i386/pc.c: convert rtc-time object prop to a class prop
  hw/i386/pc.c: convert PC_MACHINE_ACPI_DEVICE_PROP from object prop to
    class prop
  hw/i386/pc_sysfw.c: convert pflash0 and pflash1 object props to class
    props
  hw/i386/sgx-epc.c: convert SGX_EPC_SIZE_PROP object prop to class prop

 include/hw/i386/pc.h |   5 ++
 include/qom/object.h |  24 ++++++++
 hw/i386/pc.c         |  29 ++++++++--
 hw/i386/pc_piix.c    |   5 --
 hw/i386/pc_q35.c     |   5 --
 hw/i386/pc_sysfw.c   |   7 +--
 hw/i386/sgx-epc.c    |  12 ++--
 hw/rtc/mc146818rtc.c |   4 +-
 qom/object.c         | 130 +++++++++++++++++++++++++++++++++++++++----
 9 files changed, 181 insertions(+), 40 deletions(-)

-- 
2.43.0



^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2026-07-10 14:01 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-03  9:07 [PATCH 0/9] hw/i386: convert object props to class props Mark Cave-Ayland
2026-07-03  9:07 ` [PATCH 1/9] qom/object.c: introduce object_alias_get_targetp() lookup function Mark Cave-Ayland
2026-07-03  9:07 ` [PATCH 2/9] qom/object.c: introduce object_class_property_add_alias() Mark Cave-Ayland
2026-07-03  9:07 ` [PATCH 3/9] qom/object.c: introduce object_property_set_alias() function Mark Cave-Ayland
2026-07-03  9:07 ` [PATCH 4/9] hw/i386/pc.c: convert pcspk-audiodev object prop to a class prop Mark Cave-Ayland
2026-07-03  9:07 ` [PATCH 5/9] hw/rtc/mc146818rtc.c: convert date from object prop to " Mark Cave-Ayland
2026-07-06  7:15   ` Philippe Mathieu-Daudé
2026-07-03  9:07 ` [PATCH 6/9] hw/i386/pc.c: convert rtc-time object prop to a " Mark Cave-Ayland
2026-07-07 16:58   ` Daniel P. Berrangé
2026-07-03  9:08 ` [PATCH 7/9] hw/i386/pc.c: convert PC_MACHINE_ACPI_DEVICE_PROP from object prop to " Mark Cave-Ayland
2026-07-07 16:48   ` Daniel P. Berrangé
2026-07-03  9:08 ` [PATCH 8/9] hw/i386/pc_sysfw.c: convert pflash0 and pflash1 object props to class props Mark Cave-Ayland
2026-07-07 16:58   ` Daniel P. Berrangé
2026-07-08  9:40     ` Mark Cave-Ayland
2026-07-08  9:56       ` Daniel P. Berrangé
2026-07-08 10:16   ` Peter Maydell
2026-07-08 10:24     ` Daniel P. Berrangé
2026-07-08 11:21       ` Markus Armbruster
2026-07-08 11:28         ` Daniel P. Berrangé
2026-07-08 12:50           ` Markus Armbruster
2026-07-08 12:53             ` Daniel P. Berrangé
2026-07-08 12:57               ` Markus Armbruster
2026-07-08 13:27                 ` Peter Maydell
2026-07-10 14:00                   ` Markus Armbruster
2026-07-08 10:28     ` Mark Cave-Ayland
2026-07-03  9:08 ` [PATCH 9/9] hw/i386/sgx-epc.c: convert SGX_EPC_SIZE_PROP object prop to class prop Mark Cave-Ayland
2026-07-07 16:54   ` Daniel P. Berrangé

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.