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>
This commit is contained in:

committed by
Avi Kivity

parent
61a6bd672b
commit
52d939a0bf
@@ -9,6 +9,7 @@ struct kvm_kpit_timer {
|
||||
s64 period; /* unit: ns */
|
||||
s64 scheduled;
|
||||
atomic_t pending;
|
||||
bool reinject;
|
||||
};
|
||||
|
||||
struct kvm_kpit_channel_state {
|
||||
|
Reference in New Issue
Block a user