hpet: avoid timer storms on periodic timers
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Jul 2024 10:35:39 +0000 (12:35 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 22 Jul 2024 17:19:44 +0000 (19:19 +0200)
commit7c912ffb59e8137091894d767433e65c3df8b0bf
tree6d6fb82a6240bed06728ba31e96cd5fb535f9fe7
parent242d665396407f83a6acbffc804882eeb21cfdad
hpet: avoid timer storms on periodic timers

If the period is set to a value that is too low, there could be no
time left to run the rest of QEMU.  Do not trigger interrupts faster
than 1 MHz.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/timer/hpet.c