qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9] qom: Consolidate OBJECT_{DEFINE|DECLARE}_SIMPLE_TYPE*
@ 2025-05-14  8:49 Zhao Liu
  2025-05-14  8:49 ` [PATCH 1/9] qom/object: Improve the doc of macros related with simple type Zhao Liu
                   ` (9 more replies)
  0 siblings, 10 replies; 35+ messages in thread
From: Zhao Liu @ 2025-05-14  8:49 UTC (permalink / raw)
  To: Paolo Bonzini, Daniel P . Berrangé, Eduardo Habkost
  Cc: qemu-devel, qemu-trivial, Zhao Liu

Hi,

When I read the qom doc (qom.rst) about OBJECT_DECLARE_SIMPLE_TYPE, I
found there's the wrong example. So I tried to fix the doc and cleaned
up the relevant code case to correctly show that for simple type, the
class definition is not needed.

This series tries to:

 * fix & improve the documentation of OBJECT_{DEFINE|DECLARE}_SIMPLE_TYPE*,

 * and clean up several cases that could have used simple type macros
   (mainly by dropping unneeded class definitions).

Thanks and Best Regards,
Zhao
---
Zhao Liu (9):
  qom/object: Improve the doc of macros related with simple type
  docs/devel/qom: Fix the doc about OBJECT_DECLARE_SIMPLE_TYPE
  hw/acpi/pci: Consolidate OBJECT_DEFINE_SIMPLE_TYPE_WITH_INTERFACES
  hw/char/sh_serial: Consolidate
    OBJECT_DEFINE_SIMPLE_TYPE_WITH_INTERFACES
  hw/hyperv/hv-balloon: Consolidate
    OBJECT_DEFINE_SIMPLE_TYPE_WITH_INTERFACES
  hw/ppc/pef: Consolidate OBJECT_DEFINE_SIMPLE_TYPE_WITH_INTERFACES
  hw/core/resetcontainer: Consolidate OBJECT_DECLARE_SIMPLE_TYPE
  target/s390x/kvm/pv: Consolidate
    OBJECT_DEFINE_SIMPLE_TYPE_WITH_INTERFACES
  ui/console-vc: Consolidate OBJECT_DEFINE_SIMPLE_TYPE

 docs/devel/qom.rst               | 11 +----------
 hw/acpi/pci.c                    | 24 ++++++++----------------
 hw/char/sh_serial.c              |  4 +---
 hw/hyperv/hv-balloon.c           |  8 ++------
 hw/ppc/pef.c                     | 17 ++++++-----------
 include/hw/core/resetcontainer.h |  2 +-
 include/qom/object.h             |  5 +++--
 target/s390x/kvm/pv.c            | 18 ++++++------------
 ui/console-vc.c                  | 14 ++++++++------
 9 files changed, 36 insertions(+), 67 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2025-05-31 17:36 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-14  8:49 [PATCH 0/9] qom: Consolidate OBJECT_{DEFINE|DECLARE}_SIMPLE_TYPE* Zhao Liu
2025-05-14  8:49 ` [PATCH 1/9] qom/object: Improve the doc of macros related with simple type Zhao Liu
2025-05-14 12:02   ` BALATON Zoltan
2025-05-14 15:32     ` Zhao Liu
2025-05-14 16:13       ` BALATON Zoltan
2025-05-15 14:01         ` Zhao Liu
2025-05-14  8:49 ` [PATCH 2/9] docs/devel/qom: Fix the doc about OBJECT_DECLARE_SIMPLE_TYPE Zhao Liu
2025-05-14 12:06   ` BALATON Zoltan
2025-05-14 15:45     ` Zhao Liu
2025-05-14 16:16       ` BALATON Zoltan
2025-05-15 14:04         ` Zhao Liu
2025-05-14  8:49 ` [PATCH 3/9] hw/acpi/pci: Consolidate OBJECT_DEFINE_SIMPLE_TYPE_WITH_INTERFACES Zhao Liu
2025-05-14 13:08   ` Ani Sinha
2025-05-14  8:49 ` [PATCH 4/9] hw/char/sh_serial: " Zhao Liu
2025-05-14 12:07   ` BALATON Zoltan
2025-05-14 15:46     ` Zhao Liu
2025-05-14  8:49 ` [PATCH 5/9] hw/hyperv/hv-balloon: " Zhao Liu
2025-05-19 14:10   ` Maciej S. Szmigiero
2025-05-14  8:49 ` [PATCH 6/9] hw/ppc/pef: " Zhao Liu
2025-05-14 11:46   ` BALATON Zoltan
2025-05-14 11:59     ` BALATON Zoltan
2025-05-14  8:49 ` [PATCH 7/9] hw/core/resetcontainer: Consolidate OBJECT_DECLARE_SIMPLE_TYPE Zhao Liu
2025-05-14 16:56   ` Philippe Mathieu-Daudé
2025-05-14  8:49 ` [PATCH 8/9] target/s390x/kvm/pv: Consolidate OBJECT_DEFINE_SIMPLE_TYPE_WITH_INTERFACES Zhao Liu
2025-05-14  8:51   ` David Hildenbrand
2025-05-14 15:53     ` Zhao Liu
2025-05-14 16:24       ` BALATON Zoltan
2025-05-15 13:50         ` Zhao Liu
2025-05-15 15:41           ` BALATON Zoltan
2025-05-15 16:11             ` Daniel P. Berrangé
2025-05-16  3:23               ` Zhao Liu
2025-05-16  7:47                 ` David Hildenbrand
2025-05-14  8:49 ` [PATCH 9/9] ui/console-vc: Consolidate OBJECT_DEFINE_SIMPLE_TYPE Zhao Liu
2025-05-14 16:55   ` Philippe Mathieu-Daudé
2025-05-31 17:36 ` [PATCH 0/9] qom: Consolidate OBJECT_{DEFINE|DECLARE}_SIMPLE_TYPE* Michael Tokarev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).