Fixes RTC bug with base datetime shifts in clock=vm
commiteb6a52099160f1a6e66d7ee042bbf7fb5dba67d6
authorArtem Pisarenko <artem.k.pisarenko@gmail.com>
Thu, 18 Oct 2018 07:12:54 +0000 (18 13:12 +0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 Oct 2018 11:44:12 +0000 (19 13:44 +0200)
tree6a16a6a30a761f439698aa388cad1fef9b923e32
parent7e166ebd8c7bade39002b0a81a1795775af21dde
Fixes RTC bug with base datetime shifts in clock=vm

This makes all current "-rtc" option parameters combinations produce
fixed/unambiguous RTC timedate reference for hardware emulation
frontends.
It restores determinism of guest execution when used with clock=vm and
specified base <datetime> value.

Buglink: https://bugs.launchpad.net/qemu/+bug/1797033
Signed-off-by: Artem Pisarenko <artem.k.pisarenko@gmail.com>
Message-Id: <1d963c3e013dfedafa1f6edb9fb219b7e49e39da.1539846575.git.artem.k.pisarenko@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
vl.c