aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadim Krčmář <rkrcmar@redhat.com>2016-03-02 16:56:53 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2016-03-04 03:30:29 -0500
commit107d44a2c5bf08f221cb406b776310f12084e4de (patch)
treef220aeb1cf3b69a1964594867532c3dfbdd5c625
parenta0aace5ac0efdb2bcb71e10d9c9ca6a851fa59f9 (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.txt24
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
3093The rest of functionality is identical to KVM_CREATE_SPAPR_TCE. 3093The rest of functionality is identical to KVM_CREATE_SPAPR_TCE.
3094 3094
30954.98 KVM_REINJECT_CONTROL
3096
3097Capability: KVM_CAP_REINJECT_CONTROL
3098Architectures: x86
3099Type: vm ioctl
3100Parameters: struct kvm_reinject_control (in)
3101Returns: 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
3105i8254 (PIT) has two modes, reinject and !reinject. The default is reinject,
3106where KVM queues elapsed i8254 ticks and monitors completion of interrupt from
3107vector(s) that i8254 injects. Reinject mode dequeues a tick and injects its
3108interrupt whenever there isn't a pending interrupt from i8254.
3109!reinject mode injects an interrupt as soon as a tick arrives.
3110
3111struct kvm_reinject_control {
3112 __u8 pit_reinject;
3113 __u8 reserved[31];
3114};
3115
3116pit_reinject = 0 (!reinject mode) is recommended, unless running an old
3117operating system that uses the PIT for timing (e.g. Linux 2.4.x).
3118
30955. The kvm_run structure 31195. The kvm_run structure
3096------------------------ 3120------------------------
3097 3121