Skip to content

convert AML API to QOM

Igor Mammedov qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13convert to passing AcpiAml by pointershw/acpi/acpi-build-utils.c hw/i386/acpi-build.c include/hw/acpi/acpi-build-utils.h+401 -3990 replies
2/13make toplevel ACPI tables blob a pointerhw/i386/acpi-build.c+13 -130 replies
3/13qom: add support for weak referenced object: aka UnownedObjectinclude/qom/object.h qom/object.c+39 -12 replies
4/13acpi: make AcpiAml an OQM objecthw/acpi/acpi-build-utils.c include/hw/acpi/acpi-build-utils.h+44 -00 replies
5/13acpi: use TYPE_AML_OBJECT inside of AML APIhw/acpi/acpi-build-utils.c+57 -440 replies
6/13acpi: use TYPE_AML_OBJECT for toplevel ACPI tables blobhw/i386/acpi-build.c+2 -20 replies
7/13acpi: make toplevel ACPI tables blob a dedicated objecthw/acpi/acpi-build-utils.c hw/i386/acpi-build.c include/hw/acpi/acpi-build-utils.h+29 -40 replies
8/13i386: acpi: hack not yet converted tables calls to deal with table_data being a pointerhw/i386/acpi-build.c+29 -290 replies
9/13acpi: add aml_blob() helperhw/acpi/acpi-build-utils.c include/hw/acpi/acpi-build-utils.h+10 -00 replies
10/13i386: acpi: add DSDT table using AML APIhw/i386/acpi-build.c+7 -90 replies
11/13acpi: acpi_add_table() to common cross target filehw/acpi/acpi-build-utils.c hw/i386/acpi-build.c include/hw/acpi/acpi-build-utils.h+7 -60 replies
12/13acpi: prepare for API internal collection of RSDT entrieshw/acpi/acpi-build-utils.c hw/i386/acpi-build.c include/hw/acpi/acpi-build-utils.h+31 -60 replies
13/13i386: acpi: mark SSDT as RSDT entry so API would add entry to RSDT automaticallyhw/i386/acpi-build.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/13] convert AML API to QOM

Example demonstrates use of QOM object for building AML objects tree and freeing it explicitly when requested.

Top level ACPI tables blob object is only partially switched to object model now but I hope it demostrates the point of absracting code and hiding parts of code that could be done without user intervention.

Pathes 1/2/8 are just a convertion boiler plate which will go away on respin.

Igor Mammedov (13):
convert to passing AcpiAml by pointers
make toplevel ACPI tables blob a pointer
qom: add support for weak referenced object: aka UnownedObject
acpi: make AcpiAml an OQM object
acpi: use TYPE_AML_OBJECT inside of AML API
acpi: use TYPE_AML_OBJECT for toplevel ACPI tables blob
acpi: make toplevel ACPI tables blob a dedicated object
i386: acpi: hack not yet converted tables calls to deal with
table_data being a pointer
acpi: add aml_blob() helper
i386: acpi: add DSDT table using AML API
acpi: acpi_add_table() to common cross target file
acpi: prepare for API internal collection of RSDT entries
i386: acpi: mark SSDT as RSDT entry so API would add entry to RSDT
automatically

 hw/acpi/acpi-build-utils.c         | 537 +++++++++++++++++++++----------------
 hw/i386/acpi-build.c               | 388 +++++++++++++--------------
 include/hw/acpi/acpi-build-utils.h | 119 +++++---
 include/qom/object.h               |  20 ++
 qom/object.c                       |  20 +-
 5 files changed, 620 insertions(+), 464 deletions(-)
Signature · 1 line
1.8.3.1