spapr: tie spapr-nvram to -pflash
commit3978b863a5d8ac1c02848bf57d0a7f7067826a8a
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Nov 2013 09:27:40 +0000 (22 10:27 +0100)
committerAlexander Graf <agraf@suse.de>
Fri, 20 Dec 2013 00:58:02 +0000 (20 01:58 +0100)
treef9f312181986fe127d2971a9a91eeae13151904c
parent8a0e11045d5f50d300e0ab1ba05f4c8217fb5dcb
spapr: tie spapr-nvram to -pflash

spapr-nvram's drive property is currently connected to a non-existent
"-machine nvram=<drivename>" option.  Instead, tie it to -pflash like
other non-volatile RAM devices.  This provides the following possibilities
for adding a backend for the sPAPR non-volatile RAM:

* -pflash filename

* -drive if=pflash,file=filename,format=raw,...

* -drive if=none,file=filename,format=raw,id=foo,... -global spapr-nvram.drive=foo

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr.c