Message ID | 20190722150717.10564-1-dgilbert@redhat.com (mailing list archive) |
---|---|
Headers | show |
Series | Remove time reset notifications | expand |
On 22/07/19 17:07, Dr. David Alan Gilbert (git) wrote: > 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. > > Dr. David Alan Gilbert (3): > mc146818rtc: Remove reset notifiers > timer: Remove reset notifiers > timer: last, remove last bits of last > > hw/timer/mc146818rtc.c | 19 ------------------- > include/qemu/timer.h | 35 ---------------------------------- > replay/replay-snapshot.c | 3 +-- > util/qemu-timer.c | 41 +--------------------------------------- > 4 files changed, 2 insertions(+), 96 deletions(-) > Queued, thanks. Paolo
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. Dr. David Alan Gilbert (3): mc146818rtc: Remove reset notifiers timer: Remove reset notifiers timer: last, remove last bits of last hw/timer/mc146818rtc.c | 19 ------------------- include/qemu/timer.h | 35 ---------------------------------- replay/replay-snapshot.c | 3 +-- util/qemu-timer.c | 41 +--------------------------------------- 4 files changed, 2 insertions(+), 96 deletions(-)