aboutsummaryrefslogtreecommitdiff
path: root/hw/ppc/spapr_events.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2015-02-06 14:55:50 +1100
committerAlexander Graf <agraf@suse.de>2015-03-09 14:59:58 +0100
commitf01c5d84775cfc877dc0b537565a168d043394e9 (patch)
tree58184898968401715a880eaea6c2e42052dd563d /hw/ppc/spapr_events.c
parente5dad1d7d1618822dbadb1dd12efa1b5674b6c40 (diff)
pseries: Make RTAS time of day functions respect -rtc options
In the 'pseries' machine the real time clock is provided by a paravirtualized firmware interface rather than a device per se; the RTAS get-time-of-day and set-time-of-day calls. Out current implementations of those work directly off host time (with an offset), not respecting options such as clock=vm which can be specified in the -rtc command line option. This patch reworks the RTAS RTC code to respect those options, primarily by basing them on the qemu_clock_get_ns(rtc_clock) function instead of directly on qemu_get_timedate() (which essentially handles host time, not virtual rtc time). As a bonus, this means our get-time-of-day function now also returns nanoseconds. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/ppc/spapr_events.c')
0 files changed, 0 insertions, 0 deletions