summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorDavid Gibson2016-10-20 06:31:45 +0200
committerDavid Gibson2016-10-28 00:38:25 +0200
commita19f7fb0456b3d1329a2086d81418a49c1eae9b9 (patch)
treee876fa391001880ba961006e33975bed4f79e776 /include/hw
parentpseries: Remove rtas_addr and fdt_addr fields from machinestate (diff)
downloadqemu-a19f7fb0456b3d1329a2086d81418a49c1eae9b9.tar.gz
qemu-a19f7fb0456b3d1329a2086d81418a49c1eae9b9.tar.xz
qemu-a19f7fb0456b3d1329a2086d81418a49c1eae9b9.zip
pseries: Make spapr_create_fdt_skel() get information from machine state
Currently spapr_create_fdt_skel() takes a bunch of individual parameters for various things it will put in the device tree. Some of these can already be taken directly from sPAPRMachineState. This patch alters it so that all of them can be taken from there, which will allow this code to be moved away from its current caller in future. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/ppc/spapr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h
index 1174741d0b..a0b4bf80e0 100644
--- a/include/hw/ppc/spapr.h
+++ b/include/hw/ppc/spapr.h
@@ -65,6 +65,10 @@ struct sPAPRMachineState {
int vrma_adjust;
ssize_t rtas_size;
void *rtas_blob;
+ long kernel_size;
+ bool kernel_le;
+ uint32_t initrd_base;
+ long initrd_size;
void *fdt_skel;
uint64_t rtc_offset; /* Now used only during incoming migration */
struct PPCTimebase tb;