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)
commit52d939a0bf44081bc9f69b4fbdc9e7f416df27c7
tree27a14385847f5585cdccaf5e5c18074595642970
parent61a6bd672bda3b9468bf5895c1be085c4e481138
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