]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PIT: provide an option to disable interrupt reinjection
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 30 Dec 2008 17:55:06 +0000 (15:55 -0200)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:02:55 +0000 (11:02 +0200)
commit6398e50df4986b3270520e1609fff47571cf0d43
tree27a14385847f5585cdccaf5e5c18074595642970
parent666fb0379fd9093b6a307a92fcccadd24702edf4
KVM: PIT: provide an option to disable interrupt reinjection

Certain clocks (such as TSC) in older 2.6 guests overaccount for lost
ticks, causing severe time drift. Interrupt reinjection magnifies the
problem.

Provide an option to disable it.

[avi: allow room for expansion in case we want to disable reinjection
      of other timers]

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm.h
arch/x86/kvm/i8254.c
arch/x86/kvm/i8254.h
arch/x86/kvm/x86.c
include/linux/kvm.h