vrtc_snapshot() saved base_rtctime, the time the RTC had at
base_uptime. That pair is brought up to date when the guest reads or
writes the RTC and, once a second, while the alarm or the update
interrupt is enabled. A guest that does neither for hours has a base
that is hours old. A restore sets base_uptime to the uptime of the
restore, so the restored RTC was late by the age of the base.
Save the time the RTC shows when the snapshot is taken. The format of
the snapshot does not change.
Signed-off-by: Wanpeng Qian <wanpengqian@gmail.com>
Sponsored by: keelos.dev