spapr: Allow changing offset for -kernel image
commit87262806cb48c247ae55d99e280ba96027648c2d
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Mon, 3 Feb 2020 03:29:42 +0000 (3 14:29 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 20 Feb 2020 22:15:04 +0000 (21 09:15 +1100)
tree04e6cba13ca968e799dce224b3726879cc52775c
parente8ead7d579645a1866813ce563882cad055088b9
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>
hw/ppc/spapr.c
include/hw/ppc/spapr.h