]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 260237:
authorjhb <jhb@FreeBSD.org>
Tue, 20 May 2014 21:05:36 +0000 (21:05 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 20 May 2014 21:05:36 +0000 (21:05 +0000)
commiteb31f23e072094f7db4f151120f2c4d7cc4fe3ac
tree7af561a9b1c5ae25c5352bd54fd0c6b0989a6da3
parent309eceb3959753c2af110fb30621f8168be83be5
MFC 260237:
Fix a bug in the HPET emulation where a timer interrupt could be lost when the
guest disables the HPET.

The HPET timer interrupt is triggered from the callout handler associated with
the timer. It is possible for the callout handler to be delayed before it gets
a chance to execute. If the guest disables the HPET during this window then the
handler never gets a chance to execute and the timer interrupt is lost.

This is now fixed by injecting a timer interrupt into the guest if the callout
time is detected to be in the past when the HPET is disabled.
sys/amd64/vmm/io/vhpet.c