]> err.no Git - linux-2.6/commit
KVM: PIT: support mode 4
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 30 Apr 2008 16:23:54 +0000 (13:23 -0300)
committerAvi Kivity <avi@qumranet.com>
Sun, 4 May 2008 11:44:46 +0000 (14:44 +0300)
commitece15babfa514e06118f62f4df2c757d6209f4f0
tree46eadfa87b6adb88a2252c15f0468e8330968001
parentdc7457ea52f88539dc72925360e6068d5c938a0f
KVM: PIT: support mode 4

The in-kernel PIT emulation ignores pending timers if operating under
mode 4, which for example DragonFlyBSD uses (and Plan9 too, apparently).

Mode 4 seems to be similar to one-shot mode, other than the fact that it
starts counting after the next CLK pulse once programmed, while mode 1
starts counting immediately, so add a FIXME to enhance precision.

Fixes sourceforge bug 1952988.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Acked-by: Sheng Yang <sheng.yang@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/i8254.c