Page MenuHomeFreeBSD

vmm: Re-arm the PIT callout for square wave mode
ClosedPublic

Authored by hayzam_gmail.com on Fri, Sep 18, 5:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 30, 5:29 AM
Unknown Object (File)
Tue, Sep 29, 2:34 PM
Unknown Object (File)
Tue, Sep 29, 12:38 PM
Unknown Object (File)
Tue, Sep 29, 3:32 AM
Unknown Object (File)
Tue, Sep 29, 1:58 AM
Unknown Object (File)
Mon, Sep 28, 5:45 PM
Unknown Object (File)
Mon, Sep 28, 4:28 PM
Unknown Object (File)
Mon, Sep 28, 3:42 PM
Subscribers

Details

Summary

The 8254's square wave mode (mode 3) is periodic, with the same
interrupt rate as the rate generator mode (mode 2), but
vatpit_callout_handler() only re-arms the channel 0 callout for
TIMER_RATEGEN. A guest that programs mode 3 therefore receives a
single IRQ0 and no further timer interrupts.

Re-arm the callout for TIMER_SQWAVE as well, matching illumos
change 13301.

Obtained from: illumos 93d78aba5b32996fc2ae893a6237a0d3972f86b2
Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77061
Build 73944: arc lint + arc unit