qemu-patch-raspberry4/hw/nvram
Thomas Huth 280503ee9d hw/nvram/spapr_nvram: Device can not be created by the users
Trying to add a spapr-nvram device currently aborts QEMU like this:

$ ppc64-softmmu/qemu-system-ppc64  -device spapr-nvram
qemu-system-ppc64: hw/ppc/spapr_rtas.c:407: spapr_rtas_register:
 Assertion `!rtas_table[token].name' failed.
Aborted (core dumped)

This NVRAM device registers RTAS calls during its realize function
and thus can only be used once - and that's internally from spapr.c.
So let's mark the device with user_creatable = false to avoid that
the users can crash their QEMU this way.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2017-09-08 09:30:55 +10:00
..
chrp_nvram.c nvram: Move the remaining CHRP NVRAM related code to chrp_nvram.[ch] 2016-10-28 09:36:58 +11:00
ds1225y.c hw: Clean up includes 2016-01-29 15:07:25 +00:00
eeprom93xx.c vmstate: error hint for failed equal checks 2017-06-28 11:18:44 +02:00
fw_cfg.c fw_cfg: move QOM type defines and fw_cfg types into fw_cfg.h 2017-07-17 15:41:30 -03:00
mac_nvram.c migration: consolidate VMStateField.start 2017-02-13 17:27:13 +00:00
Makefile.objs nvram: Introduce helper functions for CHRP "system" and "free space" partitions 2016-10-28 09:36:58 +11:00
spapr_nvram.c hw/nvram/spapr_nvram: Device can not be created by the users 2017-09-08 09:30:55 +10:00
trace-events trace-events: fix code style: print 0x before hex numbers 2017-08-01 12:13:07 +01:00