David Gibson 28df36a13a pseries: Make the PAPR RTC a qdev device
At present the PAPR RTC isn't a "device" as such - it's accessed only via
firmware/hypervisor calls, and is handled in the sPAPR core code.  This
becomes inconvenient as we extend it in various ways.

This patch makes the PAPR RTC a separate device in the qemu device model.

For now, the only piece of device state - the rtc_offset - is still kept in
the global sPAPREnvironment structure.  That's clearly wrong, but leaving
it to be fixed in a following patch makes for a clearer separation between
the internal re-organization of the device, and the behavioural changes
(because the migration stream format needs to change slightly when the
offset is moved into the device's own state).

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
2015-03-09 14:59:58 +01:00
..
2015-03-08 11:51:46 +01:00
2013-06-07 14:55:33 +02:00
2013-12-24 18:02:18 +01:00
2014-02-03 14:04:00 +00:00
2015-03-09 09:14:28 +00:00
2014-02-26 17:20:00 +00:00
2015-03-01 12:33:22 +01:00
2013-04-08 18:13:10 +02:00
2013-04-08 18:13:10 +02:00
2015-03-09 14:59:54 +01:00
2015-01-12 10:14:04 +01:00
2013-04-08 18:13:10 +02:00
2015-01-26 11:56:33 +00:00
2015-01-08 17:32:27 +00:00
2013-04-08 18:13:10 +02:00
2015-01-15 10:44:13 +03:00
2014-10-23 16:41:25 +02:00
2014-10-24 12:19:11 +01:00
2013-04-08 18:13:10 +02:00
2014-05-28 17:36:21 +02:00
2013-05-01 20:55:21 +04:00
2014-11-11 14:50:10 +00:00