qemu-e2k/hw/ppc
David Gibson f01c5d8477 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>
2015-03-09 14:59:58 +01:00
..
e500-ccsr.h
e500.c PPC: e500: Fix GPIO controller interrupt number 2015-01-07 16:16:28 +01:00
e500.h PPC: e500 pci host: Add support for ATMUs 2015-01-07 16:16:24 +01:00
e500plat.c PPC: e500 pci host: Add support for ATMUs 2015-01-07 16:16:24 +01:00
mac_newworld.c PPC: Don't use legacy -usbdevice support for setting up board 2015-02-18 10:53:10 +01:00
mac_oldworld.c hw/usb: simplified usb_enabled 2015-01-07 16:16:29 +01:00
mac.h
Makefile.objs pseries: Move sPAPR RTC code into its own file 2015-03-09 14:59:56 +01:00
mpc8544_guts.c
mpc8544ds.c PPC: e500 pci host: Add support for ATMUs 2015-01-07 16:16:24 +01:00
ppc4xx_devs.c
ppc4xx_pci.c hw/pci/ppc4xx_pci.c: Remove unused pci4xx_cfgaddr_read/write/ops 2014-11-04 23:26:12 +01:00
ppc405_boards.c hw: Convert from BlockDriverState to BlockBackend, mostly 2014-10-20 14:02:25 +02:00
ppc405_uc.c
ppc405.h
ppc440_bamboo.c hw/core/loader: implement address translation in uimage loader 2014-11-03 00:59:10 +03:00
ppc_booke.c
ppc.c ppc: do not use get_clock_realtime() 2015-01-07 16:16:26 +01:00
ppce500_spin.c
prep.c hw/usb: simplified usb_enabled 2015-01-07 16:16:29 +01:00
spapr_events.c pseries: Add spapr_rtc_read() helper function 2015-03-09 14:59:57 +01:00
spapr_hcall.c
spapr_iommu.c spapr_vio/spapr_iommu: Move VIO bypass where it belongs 2015-03-09 14:59:52 +01:00
spapr_pci_vfio.c vfio: move hw/misc/vfio.c to hw/vfio/pci.c Move vfio.h into include/hw/vfio 2014-12-19 15:24:06 -07:00
spapr_pci.c spapr-pci: Enable huge BARs 2015-03-09 14:59:54 +01:00
spapr_rtas.c pseries: Move sPAPR RTC code into its own file 2015-03-09 14:59:56 +01:00
spapr_rtc.c pseries: Make RTAS time of day functions respect -rtc options 2015-03-09 14:59:58 +01:00
spapr_vio.c spapr_vio/spapr_iommu: Move VIO bypass where it belongs 2015-03-09 14:59:52 +01:00
spapr.c pseries: Move sPAPR RTC code into its own file 2015-03-09 14:59:56 +01:00
virtex_ml507.c hw: Convert from BlockDriverState to BlockBackend, mostly 2014-10-20 14:02:25 +02:00