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(-) -- 1.8.3.1