Skip to content

ppc: Allow "-prom-env" parameter for the pseries machine, too

Thomas Huth qemu-devel 1 version Applied

Status from this message: Applied to ppc-for-2.8, replacing earlier versions.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2spapr_nvram: Pre-initialize the NVRAM to support the -prom-env parameterhw/nvram/spapr_nvram.c+6 -00 replies
2/2tests: Add pseries machine to the prom-env-test, tootests/prom-env-test.c+14 -90 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 0/2] ppc: Allow "-prom-env" parameter for the pseries machine, too

Here's a slightly updated version of the patch that enables the "-prom-env" parameter for the pseries machine. The code is now only executed if nb_prom_envs > 0. That means if the user did _not_ specify a "-prom-env" parameter, there is no change in behavior (i.e. SLOF will initialize the NVRAM instead). This fixes the problem with grub2 not working because it does not find the "/options/real-mode?" property in the device tree.

If you currently want to use the "-prom-env" parameter and grub2 together, you simply have to specify -prom-env "real-mode?=true" to get it working. This will be fixed by a later update to SLOF, so that you then do not have to specify this explicitely anymore.

The second patch adds a test case for the -prom-env parameter on the pseries machine.

The patches have to be applied on top of David's ppc-for-2.8 branch since they rely on the chrp_nvram rework patches that are queued there.

Thomas Huth (2):
spapr_nvram: Pre-initialize the NVRAM to support the -prom-env
parameter
tests: Add pseries machine to the prom-env-test, too

 hw/nvram/spapr_nvram.c |  6 ++++++
 tests/prom-env-test.c  | 23 ++++++++++++++---------
 2 files changed, 20 insertions(+), 9 deletions(-)
Signature · 1 line
1.8.3.1