Skip to content

nvram: Refactor OpenBIOS NVRAM code to support -prom-env on pseries, too

Thomas Huth qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5nvram: Introduce helper functions for CHRP "system" and "free space" partitionshw/nvram/Makefile.objs hw/nvram/chrp_nvram.c hw/nvram/mac_nvram.c +1 more+109 -320 replies
2/5sparc: Use the new common NVRAM functions for system and free space partitionhw/sparc/sun4m.c hw/sparc64/sun4u.c+12 -540 replies
3/5spapr_nvram: Pre-initialize the NVRAM to support the -prom-env parameterhw/nvram/spapr_nvram.c+6 -00 replies
4/5nvram: Move the remaining CHRP NVRAM related code to chrp_nvram.[ch]hw/nvram/chrp_nvram.c hw/nvram/mac_nvram.c include/hw/nvram/chrp_nvram.h +2 more+57 -600 replies
5/5nvram: Rename openbios_firmware_abi.h into sun_nvram.hhw/sparc/sun4m.c hw/sparc64/sun4u.c include/hw/nvram/sun_nvram.h+5 -50 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDavid GibsonMark Cave-Ayland
SeriesR-b T-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/5] nvram: Refactor OpenBIOS NVRAM code to support -prom-env on pseries, too

The OpenBIOS NVRAM set-up is based on the layout defined in the CHRP (Common Hardware Reference Platform) specification. This is the same layout that is also used by the PAPR specification and thus by the SLOF firmware of the pseries machine. By refactoring the NVRAM code from mac_nvram.c, we can use the same functions for setting up the NVRAM for both, OpenBIOS and SLOF. This way we can support the "-prom-env" parameter of QEMU for SLOF, too, which is very useful to influence the firmware boot process.

Thomas Huth (5):
nvram: Introduce helper functions for CHRP "system" and "free space"
partitions
sparc: Use the new common NVRAM functions for system and free space
partition
spapr_nvram: Pre-initialize the NVRAM to support the -prom-env
parameter
nvram: Move the remaining CHRP NVRAM related code to chrp_nvram.[ch]
nvram: Rename openbios_firmware_abi.h into sun_nvram.h

 hw/nvram/Makefile.objs                             |  1 +
 hw/nvram/chrp_nvram.c                              | 85 ++++++++++++++++++++++
 hw/nvram/mac_nvram.c                               | 49 +++----------
 hw/nvram/spapr_nvram.c                             |  6 ++
 hw/sparc/sun4m.c                                   | 35 ++-------
 hw/sparc64/sun4u.c                                 | 35 ++-------
 include/hw/nvram/chrp_nvram.h                      | 54 ++++++++++++++
 .../nvram/{openbios_firmware_abi.h => sun_nvram.h} | 47 +-----------
 tests/postcopy-test.c                              |  8 +-
 9 files changed, 179 insertions(+), 141 deletions(-)
 create mode 100644 hw/nvram/chrp_nvram.c
 create mode 100644 include/hw/nvram/chrp_nvram.h
 rename include/hw/nvram/{openbios_firmware_abi.h => sun_nvram.h} (50%)
Signature · 1 line
1.8.3.1