This series uses rtc_clock uniformly in device models that provide RTC functionality. This will let users choose the desired semantics for the clock.
This is most important with qtest, where "-rtc clock=vm" will provide determinism and let you run tests that fake execution for large time periods. However, for consistency I'm switching also the two RTC models that always used the vm_clock, m48t59 and pl031. m48t59 is not ARM so I'm sending it separately. Patch 3 fixes an unrelated bug in the pl031 migration code. Paolo Bonzini (4): rtc: add -rtc clock=rt arm: switch real-time clocks to rtc_clock pl031: rearm alarm timer upon load pl031: switch clock base to rtc_clock hw/omap1.c | 10 +++--- hw/pl031.c | 76 ++++++++++++++++++++++++++++++++++++------------------- hw/pxa2xx.c | 28 ++++++++++---------- hw/strongarm.c | 10 +++--- hw/twl92230.c | 9 +++--- qemu-options.hx | 7 +++-- vl.c | 2 + 7 files changed, 85 insertions(+), 57 deletions(-) -- 1.7.7.1