elf-loader: Allow late loading of elf
commit34f1b23f8a61841bac06010e898221c6192a9035
authorFarhan Ali <alifm@linux.vnet.ibm.com>
Mon, 7 Nov 2016 15:50:30 +0000 (7 10:50 -0500)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 28 Feb 2017 11:04:48 +0000 (28 12:04 +0100)
tree4fa39eeb3463328e567d1b3d73940f8277979c63
parent6181478f6395cdd9d6ffd99623d0c9f39ea53606
elf-loader: Allow late loading of elf

The current QEMU ROM infrastructure rejects late loading of ROMs.
And ELFs are currently loaded as ROM, this prevents delayed loading
of ELFs. So when loading ELF, allow the user to specify if ELF should
be loaded as ROM or not.

If an ELF is not loaded as ROM, then they are not restored on a
guest reboot/reset and so its upto the user to handle the reloading.

Signed-off-by: Farhan Ali <alifm@linux.vnet.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/core/loader.c
include/hw/elf_ops.h
include/hw/loader.h