Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1348495

[PATCH v3 16/16] KVM: document KVM_REINJECT_CONTROL ioctl

From Radim Krčmář <radimkrcmar@hpx.cz>
Newsgroups linux.kernel
Subject [PATCH v3 16/16] KVM: document KVM_REINJECT_CONTROL ioctl
Date 2016-03-02 23:00 +0100
Message-ID <r8mYj-5A6-3@gated-at.bofh.it> (permalink)
References <r8mYj-5A6-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Radim Krčmář <rkrcmar@redhat.com>

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
---
 v3: new, one result of a long discussion with Paolo

 Documentation/virtual/kvm/api.txt | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt
index 4a661e555c09..777aefc77743 100644
--- a/Documentation/virtual/kvm/api.txt
+++ b/Documentation/virtual/kvm/api.txt
@@ -3035,6 +3035,30 @@ Returns: 0 on success, -1 on error
 
 Queues an SMI on the thread's vcpu.
 
+4.97 KVM_REINJECT_CONTROL
+
+Capability: KVM_CAP_REINJECT_CONTROL
+Architectures: x86
+Type: vm ioctl
+Parameters: struct kvm_reinject_control (in)
+Returns: 0 on success,
+         -EFAULT if struct kvm_reinject_control cannot be read,
+         -ENXIO if KVM_CREATE_PIT or KVM_CREATE_PIT2 didn't succeed earlier.
+
+i8254 (PIT) has two modes, reinject and !reinject.  The default is reinject,
+where KVM queues elapsed i8254 ticks and monitors completion of interrupt from
+vector(s) that i8254 injects.  Reinject mode dequeues a tick and injects its
+interrupt whenever there isn't a pending interrupt from i8254.
+!reinject mode injects an interrupt as soon as a tick arrives.
+
+struct kvm_reinject_control {
+	__u8 pit_reinject;
+	__u8 reserved[31];
+};
+
+pit_reinject = 0 (!reinject mode) is recommended.
+
+
 5. The kvm_run structure
 ------------------------
 
-- 
2.7.2

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 16/16] KVM: document KVM_REINJECT_CONTROL ioctl Radim Krčmář <radimkrcmar@hpx.cz> - 2016-03-02 23:00 +0100
  Re: [PATCH v3 16/16] KVM: document KVM_REINJECT_CONTROL ioctl Paolo Bonzini <pbonzini@redhat.com> - 2016-03-03 15:30 +0100
    Re: [PATCH v3 16/16] KVM: document KVM_REINJECT_CONTROL ioctl Radim Krčmář <radimkrcmar@hpx.cz> - 2016-03-03 17:20 +0100

csiph-web