summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorAlexey Kardashevskiy2020-02-03 04:29:42 +0100
committerDavid Gibson2020-02-20 23:15:04 +0100
commit87262806cb48c247ae55d99e280ba96027648c2d (patch)
tree04e6cba13ca968e799dce224b3726879cc52775c /include/hw
parentpnv/phb3: Add missing break statement (diff)
downloadqemu-87262806cb48c247ae55d99e280ba96027648c2d.tar.gz
qemu-87262806cb48c247ae55d99e280ba96027648c2d.tar.xz
qemu-87262806cb48c247ae55d99e280ba96027648c2d.zip
spapr: Allow changing offset for -kernel image
This allows moving the kernel in the guest memory. The option is useful for step debugging (as Linux is linked at 0x0); it also allows loading grub which is normally linked to run at 0x20000. This uses the existing kernel address by default. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Message-Id: <20200203032943.121178-6-aik@ozlabs.ru> Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/ppc/spapr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h
index d557fc1f35..09110961a5 100644
--- a/include/hw/ppc/spapr.h
+++ b/include/hw/ppc/spapr.h
@@ -162,6 +162,7 @@ struct SpaprMachineState {
void *fdt_blob;
long kernel_size;
bool kernel_le;
+ uint64_t kernel_addr;
uint32_t initrd_base;
long initrd_size;
uint64_t rtc_offset; /* Now used only during incoming migration */