David Gibson a3467baa88 Delay creation of pseries device tree until reset
At present, the 'pseries' machine creates a flattened device tree in the
machine->init function to pass to either the guest kernel or to firmware.

However, the machine->init function runs before processing of -device
command line options, which means that the device tree so created will
be (incorrectly) missing devices specified that way.

Supplying a correct device tree is, in any case, part of the required
platform entry conditions.  Therefore, this patch moves the creation and
loading of the device tree from machine->init to a reset callback.  The
setup of entry point address and initial register state moves with it,
which leads to a slight cleanup.

This is not, alas, quite enough to make a fully working reset for pseries.
For that we would need to reload the firmware images, which on this
machine are loaded into RAM.  It's a step in the right direction, though.

Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2011-04-08 11:32:21 +02:00
..
2011-04-07 13:51:48 +02:00
2011-03-22 07:42:08 +01:00
2011-04-01 19:07:48 -05:00
2011-01-29 15:07:19 +01:00
2011-04-07 13:51:48 +02:00
2011-02-20 09:34:06 +00:00
2011-01-24 20:54:34 +00:00
2011-01-24 20:54:34 +00:00
2011-03-06 20:10:58 +01:00
2011-01-29 14:06:07 +01:00
2011-02-11 23:31:17 +01:00
2011-04-07 13:51:48 +02:00
2011-02-21 15:46:53 +01:00
2011-02-01 17:01:41 +00:00
2011-03-07 13:42:37 +01:00
2011-03-07 13:42:36 +01:00
2011-03-07 13:42:36 +01:00
2011-03-07 13:42:36 +01:00
2011-03-07 13:42:36 +01:00
2011-03-07 13:42:37 +01:00
2011-03-07 13:42:36 +01:00
2011-03-07 13:42:36 +01:00
2011-03-07 13:42:36 +01:00
2011-03-10 03:38:13 +01:00
2011-02-11 23:31:17 +01:00
2011-02-20 09:35:06 +00:00
2011-04-07 13:51:48 +02:00
2011-01-20 15:33:18 +02:00
2011-01-20 15:33:34 +02:00
2011-03-10 03:38:13 +01:00
2011-02-20 09:31:21 +00:00
2011-04-07 13:51:48 +02:00
2011-03-22 07:44:15 +01:00
2011-02-20 09:35:06 +00:00
2011-03-28 18:34:22 +02:00
2011-03-28 18:34:22 +02:00
2011-03-28 18:34:22 +02:00
2011-01-20 12:37:21 +01:00
2011-01-20 12:37:21 +01:00
2011-01-20 12:37:21 +01:00
2011-02-20 18:23:07 +01:00
2011-04-07 13:51:48 +02:00
2011-04-01 18:34:55 +02:00
2011-04-01 18:34:55 +02:00
2011-02-21 15:41:12 +01:00
2011-02-25 12:13:38 +01:00
2011-03-03 15:04:51 +01:00
2011-03-10 03:11:47 +01:00
2011-01-24 15:15:15 +01:00
2011-01-20 12:37:21 +01:00
2011-03-26 11:11:02 +00:00
2011-02-20 18:23:07 +01:00
2011-01-20 12:37:21 +01:00
2011-01-21 17:56:32 +01:00
2011-01-20 12:37:21 +01:00
2011-04-07 13:51:48 +02:00
2011-01-24 17:23:17 +01:00
2011-04-07 14:25:53 +01:00
2011-01-24 17:21:34 +01:00
2011-01-24 17:21:34 +01:00
2011-02-20 09:34:31 +00:00
2011-02-20 09:34:31 +00:00
2011-03-28 18:34:23 +02:00
2011-03-22 07:44:15 +01:00
2011-02-17 19:34:52 +00:00
2011-02-14 12:39:46 -02:00
2011-04-08 11:32:21 +02:00
2011-04-08 11:32:21 +02:00