qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 0/2] machine: Move nvdimms state into struct MachineState
@ 2019-03-08 15:25 Eric Auger
  2019-03-08 15:25 ` [Qemu-devel] [PATCH v3 1/2] nvdimm: Rename AcpiNVDIMMState into NVDIMMState Eric Auger
  2019-03-08 15:25 ` [Qemu-devel] [PATCH v3 2/2] machine: Move nvdimms state into struct MachineState Eric Auger
  0 siblings, 2 replies; 9+ messages in thread
From: Eric Auger @ 2019-03-08 15:25 UTC (permalink / raw)
  To: eric.auger.pro, eric.auger, qemu-devel, qemu-arm, peter.maydell,
	shameerali.kolothum.thodi, imammedo, david, pbonzini, ehabkost,
	richard.henderson, sbhat, philmd

As NVDIMM support is looming for ARM and SPAPR, let's
move the acpi_nvdimm_state to the generic machine struct
instead of duplicating the same code in several machines.

nvdimm and nvdimm-persistence become generic machine options.
They become guarded by a nvdimm_supported machine class member.

Best regards

Eric

https://github.com/eauger/qemu/tree/nvdimms_state_v3

Eric Auger (2):
  nvdimm: Rename AcpiNVDIMMState into NVDIMMState
  machine: Move nvdimms state into struct MachineState

 hw/acpi/nvdimm.c        | 18 ++++++------
 hw/core/machine.c       | 65 +++++++++++++++++++++++++++++++++++++++++
 hw/i386/acpi-build.c    |  6 ++--
 hw/i386/pc.c            | 57 ++++--------------------------------
 hw/i386/pc_piix.c       |  4 +--
 hw/i386/pc_q35.c        |  4 +--
 include/hw/boards.h     |  2 ++
 include/hw/i386/pc.h    |  4 ---
 include/hw/mem/nvdimm.h | 10 +++----
 9 files changed, 93 insertions(+), 77 deletions(-)

-- 
2.20.1

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

end of thread, other threads:[~2019-03-08 21:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-08 15:25 [Qemu-devel] [PATCH v3 0/2] machine: Move nvdimms state into struct MachineState Eric Auger
2019-03-08 15:25 ` [Qemu-devel] [PATCH v3 1/2] nvdimm: Rename AcpiNVDIMMState into NVDIMMState Eric Auger
2019-03-08 17:59   ` Philippe Mathieu-Daudé
2019-03-08 15:25 ` [Qemu-devel] [PATCH v3 2/2] machine: Move nvdimms state into struct MachineState Eric Auger
2019-03-08 17:42   ` Eduardo Habkost
2019-03-08 17:45     ` Eduardo Habkost
2019-03-08 18:02   ` Philippe Mathieu-Daudé
2019-03-08 18:16     ` Auger Eric
2019-03-08 21:04       ` Philippe Mathieu-Daudé

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).