diff options
author | Radim Krčmář <rkrcmar@redhat.com> | 2016-03-02 16:56:53 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-03-04 03:30:29 -0500 |
commit | 107d44a2c5bf08f221cb406b776310f12084e4de (patch) | |
tree | f220aeb1cf3b69a1964594867532c3dfbdd5c625 | |
parent | a0aace5ac0efdb2bcb71e10d9c9ca6a851fa59f9 (diff) |
KVM: document KVM_REINJECT_CONTROL ioctl
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | Documentation/virtual/kvm/api.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index 110484915aa0..335fe889efd9 100644 --- a/Documentation/virtual/kvm/api.txt +++ b/Documentation/virtual/kvm/api.txt | |||
@@ -3092,6 +3092,30 @@ of IOMMU pages. | |||
3092 | 3092 | ||
3093 | The rest of functionality is identical to KVM_CREATE_SPAPR_TCE. | 3093 | The rest of functionality is identical to KVM_CREATE_SPAPR_TCE. |
3094 | 3094 | ||
3095 | 4.98 KVM_REINJECT_CONTROL | ||
3096 | |||
3097 | Capability: KVM_CAP_REINJECT_CONTROL | ||
3098 | Architectures: x86 | ||
3099 | Type: vm ioctl | ||
3100 | Parameters: struct kvm_reinject_control (in) | ||
3101 | Returns: 0 on success, | ||
3102 | -EFAULT if struct kvm_reinject_control cannot be read, | ||
3103 | -ENXIO if KVM_CREATE_PIT or KVM_CREATE_PIT2 didn't succeed earlier. | ||
3104 | |||
3105 | i8254 (PIT) has two modes, reinject and !reinject. The default is reinject, | ||
3106 | where KVM queues elapsed i8254 ticks and monitors completion of interrupt from | ||
3107 | vector(s) that i8254 injects. Reinject mode dequeues a tick and injects its | ||
3108 | interrupt whenever there isn't a pending interrupt from i8254. | ||
3109 | !reinject mode injects an interrupt as soon as a tick arrives. | ||
3110 | |||
3111 | struct kvm_reinject_control { | ||
3112 | __u8 pit_reinject; | ||
3113 | __u8 reserved[31]; | ||
3114 | }; | ||
3115 | |||
3116 | pit_reinject = 0 (!reinject mode) is recommended, unless running an old | ||
3117 | operating system that uses the PIT for timing (e.g. Linux 2.4.x). | ||
3118 | |||
3095 | 5. The kvm_run structure | 3119 | 5. The kvm_run structure |
3096 | ------------------------ | 3120 | ------------------------ |
3097 | 3121 | ||