diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2016-10-20 15:31:45 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2016-10-28 09:38:25 +1100 |
commit | a19f7fb0456b3d1329a2086d81418a49c1eae9b9 (patch) | |
tree | e876fa391001880ba961006e33975bed4f79e776 /include/hw | |
parent | cae172ab6daa18e1edc789c237a11d6dbc858ee0 (diff) | |
download | 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.h | 4 |
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; |