diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2008-12-30 12:55:06 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-03-24 05:02:55 -0400 |
commit | 52d939a0bf44081bc9f69b4fbdc9e7f416df27c7 (patch) | |
tree | 27a14385847f5585cdccaf5e5c18074595642970 /include/linux/kvm.h | |
parent | 61a6bd672bda3b9468bf5895c1be085c4e481138 (diff) |
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>
Diffstat (limited to 'include/linux/kvm.h')
-rw-r--r-- | include/linux/kvm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h index 11e3e6197c83..ae7a12c77427 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h | |||
@@ -396,6 +396,9 @@ struct kvm_trace_rec { | |||
396 | #if defined(CONFIG_X86) | 396 | #if defined(CONFIG_X86) |
397 | #define KVM_CAP_SET_GUEST_DEBUG 23 | 397 | #define KVM_CAP_SET_GUEST_DEBUG 23 |
398 | #endif | 398 | #endif |
399 | #if defined(CONFIG_X86) | ||
400 | #define KVM_CAP_REINJECT_CONTROL 24 | ||
401 | #endif | ||
399 | 402 | ||
400 | /* | 403 | /* |
401 | * ioctls for VM fds | 404 | * ioctls for VM fds |
@@ -429,6 +432,7 @@ struct kvm_trace_rec { | |||
429 | struct kvm_assigned_pci_dev) | 432 | struct kvm_assigned_pci_dev) |
430 | #define KVM_ASSIGN_IRQ _IOR(KVMIO, 0x70, \ | 433 | #define KVM_ASSIGN_IRQ _IOR(KVMIO, 0x70, \ |
431 | struct kvm_assigned_irq) | 434 | struct kvm_assigned_irq) |
435 | #define KVM_REINJECT_CONTROL _IO(KVMIO, 0x71) | ||
432 | 436 | ||
433 | /* | 437 | /* |
434 | * ioctls for vcpu fds | 438 | * ioctls for vcpu fds |