qemu-e2k/hw
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
..
9pfs virtio: feature bit manipulation helpers 2015-02-26 13:04:07 +01:00
acpi aml-build: fix build for glib < 2.22 2015-03-03 17:42:18 +01:00
alpha QOM infrastructure fixes and device conversions 2015-03-02 13:20:43 +00:00
arm
audio
block virtio: add feature checking helpers 2015-02-26 13:04:07 +01:00
bt
char pci, pc, virtio fixes and cleanups 2015-03-09 09:14:28 +00:00
core pci, pc, virtio fixes and cleanups 2015-03-09 09:14:28 +00:00
cpu
cris
display pci, pc, virtio fixes and cleanups 2015-03-09 09:14:28 +00:00
dma
gpio
i2c
i386 pci, pc, virtio fixes and cleanups 2015-03-09 09:14:28 +00:00
ide pci, pc, virtio fixes and cleanups 2015-03-09 09:14:28 +00:00
input
intc
ipack
isa
lm32
m68k
mem pc-dimm: add a function to calculate VM's current RAM size 2015-03-04 13:00:04 -05:00
microblaze
mips QOM infrastructure fixes and device conversions 2015-03-02 13:20:43 +00:00
misc pci, pc, virtio fixes and cleanups 2015-03-09 09:14:28 +00:00
moxie
net pci, pc, virtio fixes and cleanups 2015-03-09 09:14:28 +00:00
nvram
openrisc
pci pci-hotplug-old: Has been dead for five major releases, bury 2015-03-01 12:37:54 +01:00
pci-bridge pci, pc, virtio fixes and cleanups 2015-03-09 09:14:28 +00:00
pci-host
pcmcia
ppc pseries: Make RTAS time of day functions respect -rtc options 2015-03-09 14:59:58 +01:00
s390x balloon: call qdev_alias_all_properties for proxy dev in balloon class init 2015-03-01 12:32:59 +01:00
scsi pci, pc, virtio fixes and cleanups 2015-03-09 09:14:28 +00:00
sd
sh4
sparc
sparc64 QOM infrastructure fixes and device conversions 2015-03-02 13:20:43 +00:00
ssi
timer Generalize QOM publishing of date and time from mc146818rtc.c 2015-03-09 14:59:55 +01:00
tpm tpm: Support for capability flags of TIS 1.3 2015-03-01 12:33:21 +01:00
tricore
unicore32
usb pci, pc, virtio fixes and cleanups 2015-03-09 09:14:28 +00:00
vfio vfio-pci: Enable device request notification support 2015-03-02 11:38:55 -07:00
virtio pci, pc, virtio fixes and cleanups 2015-03-09 09:14:28 +00:00
watchdog pci, pc, virtio fixes and cleanups 2015-03-09 09:14:28 +00:00
xen
xenpv
xtensa target-xtensa: xtfpga: fix ml605 flash size 2015-03-07 15:27:55 +03:00
Makefile.objs