qemu-e2k/include/qemu
Paul Donohue fb1a3a051d qemu-timer: Call clock reset notifiers on forward jumps
Commit 691a0c9c introduced a mechanism by which QEMU_CLOCK_HOST can
notify other parts of the emulator when the host clock has jumped
backward.  This is used to avoid stalling timers that were scheduled
based on the host clock.

However, if the host clock jumps forward, then timers that were
scheduled based on the host clock may fire rapidly and cause other
problems.  For example, the mc146818rtc periodic timer will block
execution of the VM and consume host CPU while firing every interrupt
for the time period that was skipped by the host clock.

To correct that problem, this commit fires the reset notification if the
host clock jumps forward by more than a hard-coded limit.  The limit is
currently set to a value of 60 seconds, which should be small enough to
prevent excessive timer loops, but large enough to avoid frequent resets
in idle VMs.

Signed-off-by: Paul Donohue <qemu-git@PaulSD.com>
Message-Id: <20150612140845.GD2749@TopQuark.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-06-19 12:27:14 +02:00
..
acl.h
aes.h
atomic.h atomics: add explicit compiler fence in __atomic memory barriers 2015-06-05 19:45:13 +02:00
bitmap.h bitmap: add atomic test and clear 2015-06-05 17:10:00 +02:00
bitops.h bitmap: add atomic set functions 2015-06-05 17:10:00 +02:00
bswap.h cpu_ldst.h, cpu-all.h, bswap.h: Update documentation on ld/st accessors 2015-01-20 15:19:35 +00:00
compatfd.h util: Remove unused functions 2015-04-30 16:05:48 +03:00
compiler.h
config-file.h
crc32c.h
envlist.h
error-report.h
event_notifier.h
fifo8.h
hbitmap.h block: Resize bitmaps on bdrv_truncate 2015-04-28 15:36:10 +02:00
host-utils.h
int128.h
iov.h
log.h
main-loop.h iohandler: Change return type of qemu_set_fd_handler to "void" 2015-06-12 13:26:21 +01:00
module.h
notify.h
option_int.h
option.h QemuOpts: Convert qemu_opt_foreach() to Error 2015-06-09 07:40:23 +02:00
osdep.h util: move read_password method out of qemu-img into osdep/oslib 2015-05-22 17:08:01 +02:00
queue.h queue.h: Add QLIST_FIX_HEAD_PTR() 2015-06-12 17:04:59 +02:00
range.h
ratelimit.h
rcu_queue.h rcu: introduce RCU-enabled QLIST 2015-02-16 17:30:19 +01:00
rcu.h rcu: do not create thread in pthread_atfork callback 2015-04-01 10:06:38 +02:00
readline.h
rfifolock.h
seqlock.h
sockets.h socket shutdown 2015-01-16 13:06:17 +05:30
thread-posix.h
thread-win32.h
thread.h rcu: add rcu library 2015-02-02 16:55:10 +01:00
throttle.h throttle: Update throttle infrastructure copyright 2015-06-12 14:00:00 +01:00
timer.h qemu-timer: Call clock reset notifiers on forward jumps 2015-06-19 12:27:14 +02:00
tls.h
typedefs.h Move loadvm_handlers into MigrationIncomingState 2015-06-12 06:54:01 +02:00
uri.h
xattr.h