spapr_nvram: Pre-initialize the NVRAM to support the -prom-env parameter
commit61f20b9dc5b78c603354a4ec170079479dcb6657
authorThomas Huth <thuth@redhat.com>
Wed, 26 Oct 2016 07:35:40 +0000 (26 09:35 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 27 Oct 2016 22:38:27 +0000 (28 09:38 +1100)
treeae0c33e38a4c6cc592e339e01ac4cfd1ab61d1a0
parentb4ba67d9a702507793c2724e56f98e9b0f7be02b
spapr_nvram: Pre-initialize the NVRAM to support the -prom-env parameter

In case we do not load the NVRAM contents from a file and the user
specified the "-prom-env" parameter, use the new CHRP NVRAM helper
functions to pre-initialize the NVRAM partitions, so that the SLOF
firmware now can pick up the environment variables from the -prom-env
parameter, too.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/nvram/spapr_nvram.c