OSDN Git Service

pseries: Implement PAPR NVRAM
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 12 Nov 2012 16:46:57 +0000 (16:46 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 14 Dec 2012 12:12:54 +0000 (13:12 +0100)
commit639e8102ae71ce2e46ebeffc6080767e573c0c56
tree5a09de7099446d237dec48b0c9d19ae8c76ca4d0
parent22a2611c9cef4a8c8ad96fe17b3511a6cc5fb3a1
pseries: Implement PAPR NVRAM

The PAPR specification requires a certain amount of NVRAM, accessed via
RTAS, which we don't currently implement in qemu.  This patch addresses
this deficiency, implementing the NVRAM as a VIO device, with some glue to
instantiate it automatically based on a machine option.

The machine option specifies a drive id, which is used to back the NVRAM,
making it persistent.  If nothing is specified, the driver instead simply
allocates space for the NVRAM, which will not be persistent

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/Makefile.objs
hw/spapr.c
hw/spapr.h
hw/spapr_nvram.c [new file with mode: 0644]
qemu-config.c