qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [for 4.2 PATCH v2 0/4] Remove time reset notifications
@ 2019-07-24 11:58 Dr. David Alan Gilbert (git)
  2019-07-24 11:58 ` [Qemu-devel] [for 4.2 PATCH v2 1/4] mc146818rtc: Remove reset notifiers Dr. David Alan Gilbert (git)
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Dr. David Alan Gilbert (git) @ 2019-07-24 11:58 UTC (permalink / raw)
  To: qemu-devel, pbonzini, pavel.dovgaluk

From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>

Timers have a mechanism for detecting host clock jumps; this relied
on noticing if the time had gone backwards or if it had gone forward
more than 60s since we last read it.  This had assumed that we regularly
read the time, which isn't true any more - we might not read the host
timer until the guest explicitly reads the guest RTC (e.g. hwclock).
This falsely triggers the reset mechanism.
 
The reset mechanism was only used by the mc146818 (i.e. PC) RTC
anyway; so lets remove it.

v2
  Remove the host_clock_last field in replay as per Pavel's review

Dr. David Alan Gilbert (4):
  mc146818rtc: Remove reset notifiers
  timer: Remove reset notifiers
  replay: Remove host_clock_last
  timer: last, remove last bits of last

 hw/timer/mc146818rtc.c   | 19 -------------------
 include/qemu/timer.h     | 35 ----------------------------------
 replay/replay-snapshot.c |  7 ++-----
 util/qemu-timer.c        | 41 +---------------------------------------
 4 files changed, 3 insertions(+), 99 deletions(-)

-- 
2.21.0



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-07-24 12:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-24 11:58 [Qemu-devel] [for 4.2 PATCH v2 0/4] Remove time reset notifications Dr. David Alan Gilbert (git)
2019-07-24 11:58 ` [Qemu-devel] [for 4.2 PATCH v2 1/4] mc146818rtc: Remove reset notifiers Dr. David Alan Gilbert (git)
2019-07-24 11:58 ` [Qemu-devel] [for 4.2 PATCH v2 2/4] timer: " Dr. David Alan Gilbert (git)
2019-07-24 11:58 ` [Qemu-devel] [for 4.2 PATCH v2 3/4] replay: Remove host_clock_last Dr. David Alan Gilbert (git)
2019-07-24 12:32   ` Pavel Dovgalyuk
2019-07-24 11:58 ` [Qemu-devel] [for 4.2 PATCH v2 4/4] timer: last, remove last bits of last Dr. David Alan Gilbert (git)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).