All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Rework ACPI OEM fields handling to simplify code (was: acpi: Remove duplicated code handling OEM ID and OEM table ID fields)
@ 2021-02-21  0:17 Marian Postevca
  2021-02-21  0:17 ` [PATCH 1/2] acpi: Move setters/getters of oem fields to X86MachineState Marian Postevca
  2021-02-21  0:17 ` [PATCH 2/2] acpi: Consolidate the handling of OEM ID and OEM Table ID fields Marian Postevca
  0 siblings, 2 replies; 6+ messages in thread
From: Marian Postevca @ 2021-02-21  0:17 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Xiao Guangrong, Sergio Lopez, Michael S . Tsirkin,
	Richard Henderson, Dongjiu Geng, Shannon Zhao, Xiang Zheng,
	open list : ACPI/HEST/GHES, Marian Postevca, Igor Mammedov,
	Paolo Bonzini, Eduardo Habkost

This patch series consolidates ACPI OEM fields handling
by:
- Moving common code in PC and MICROVM to X86.
- Changes unnecessary dynamic memory allocation to static allocation
- Uses dedicated structure to keep values of fields instead of two
  separate strings
- Adds helper macros to initialize the structure

v2:
- Move the setters/getters of OEM fields to X86MachineState to
  remove duplication
- Change commit message to make it clear the second commit is 
  a re-factor

Marian Postevca (2):
  acpi: Move setters/getters of oem fields to X86MachineState
  acpi: Consolidate the handling of OEM ID and OEM Table ID fields

 hw/acpi/hmat.h                   |  2 +-
 hw/i386/acpi-common.h            |  2 +-
 include/hw/acpi/acpi-build-oem.h | 55 ++++++++++++++++++++++
 include/hw/acpi/aml-build.h      | 16 +++----
 include/hw/acpi/ghes.h           |  2 +-
 include/hw/acpi/pci.h            |  2 +-
 include/hw/acpi/vmgenid.h        |  2 +-
 include/hw/arm/virt.h            |  4 +-
 include/hw/i386/microvm.h        |  4 --
 include/hw/i386/pc.h             |  4 --
 include/hw/i386/x86.h            |  4 ++
 include/hw/mem/nvdimm.h          |  4 +-
 hw/acpi/aml-build.c              | 27 ++++++-----
 hw/acpi/ghes.c                   |  5 +-
 hw/acpi/hmat.c                   |  4 +-
 hw/acpi/nvdimm.c                 | 22 +++++----
 hw/acpi/pci.c                    |  4 +-
 hw/acpi/vmgenid.c                |  6 ++-
 hw/arm/virt-acpi-build.c         | 40 ++++++----------
 hw/arm/virt.c                    | 16 +++----
 hw/i386/acpi-build.c             | 78 +++++++++++++++-----------------
 hw/i386/acpi-common.c            |  4 +-
 hw/i386/acpi-microvm.c           | 13 ++----
 hw/i386/microvm.c                | 66 ---------------------------
 hw/i386/pc.c                     | 63 --------------------------
 hw/i386/x86.c                    | 61 +++++++++++++++++++++++++
 26 files changed, 237 insertions(+), 273 deletions(-)
 create mode 100644 include/hw/acpi/acpi-build-oem.h

-- 
2.26.2



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

end of thread, other threads:[~2021-03-22 14:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-21  0:17 [PATCH v2 0/2] Rework ACPI OEM fields handling to simplify code (was: acpi: Remove duplicated code handling OEM ID and OEM table ID fields) Marian Postevca
2021-02-21  0:17 ` [PATCH 1/2] acpi: Move setters/getters of oem fields to X86MachineState Marian Postevca
2021-03-01 20:24   ` Igor Mammedov
2021-02-21  0:17 ` [PATCH 2/2] acpi: Consolidate the handling of OEM ID and OEM Table ID fields Marian Postevca
2021-03-01 20:29   ` Igor Mammedov
2021-03-22 14:12   ` Michael S. Tsirkin

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.