Received: from eggs.gnu.org ([2001:4830:134:3::10]:49786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzIkW-0003n9-Dr for qemu-devel@nongnu.org; Wed, 26 Oct 2016 03:35:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzIkV-0007DP-2T for qemu-devel@nongnu.org; Wed, 26 Oct 2016 03:35:48 -0400 From: Thomas Huth Date: Wed, 26 Oct 2016 09:35:39 +0200 Message-Id: <1477467341-17552-1-git-send-email-thuth@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] ppc: Allow "-prom-env" parameter for the pseries machine, too List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson , Alexander Graf , qemu-ppc@nongnu.org Cc: qemu-devel@nongnu.org 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