diff options
| author | David Gibson | 2015-02-06 04:55:50 +0100 |
|---|---|---|
| committer | Alexander Graf | 2015-03-09 14:59:58 +0100 |
| commit | f01c5d84775cfc877dc0b537565a168d043394e9 (patch) | |
| tree | 58184898968401715a880eaea6c2e42052dd563d /include | |
| parent | pseries: Add spapr_rtc_read() helper function (diff) | |
| download | qemu-f01c5d84775cfc877dc0b537565a168d043394e9.tar.gz qemu-f01c5d84775cfc877dc0b537565a168d043394e9.tar.xz qemu-f01c5d84775cfc877dc0b537565a168d043394e9.zip | |
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 'include')
0 files changed, 0 insertions, 0 deletions
