aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPan Xinhui <xinhui.pan@linux.vnet.ibm.com>2016-11-02 05:08:38 -0400
committerIngo Molnar <mingo@kernel.org>2016-11-22 06:48:09 -0500
commit3dd3e0ce7989b645eee0174b17f5095e187c7f28 (patch)
tree3cb6a1b77f07238cc8bad694bf1df929e04994ff
parentde7689cf8f3820b34088da3b22ce1a548dda2fc5 (diff)
Documentation/virtual/kvm: Support the vCPU preemption check
Commit ("x86/kvm: support vCPU preemption check") added a new struct kvm_steal_time::preempted field. This field tells us if a vCPU is running or not. It is zero if some old KVM does not support this field or if the vCPU is not preempted. Other values means the vCPU has been preempted. Signed-off-by: Pan Xinhui <xinhui.pan@linux.vnet.ibm.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Radim Krčmář <rkrcmar@redhat.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Cc: David.Laight@ACULAB.COM Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: benh@kernel.crashing.org Cc: boqun.feng@gmail.com Cc: borntraeger@de.ibm.com Cc: bsingharora@gmail.com Cc: dave@stgolabs.net Cc: jgross@suse.com Cc: kernellwp@gmail.com Cc: konrad.wilk@oracle.com Cc: linuxppc-dev@lists.ozlabs.org Cc: mpe@ellerman.id.au Cc: paulmck@linux.vnet.ibm.com Cc: paulus@samba.org Cc: virtualization@lists.linux-foundation.org Cc: will.deacon@arm.com Cc: xen-devel-request@lists.xenproject.org Cc: xen-devel@lists.xenproject.org Link: http://lkml.kernel.org/r/1478077718-37424-12-git-send-email-xinhui.pan@linux.vnet.ibm.com [ Various typo fixes. ] Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--Documentation/virtual/kvm/msr.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/Documentation/virtual/kvm/msr.txt b/Documentation/virtual/kvm/msr.txt
index 2a71c8f29f68..0a9ea515512a 100644
--- a/Documentation/virtual/kvm/msr.txt
+++ b/Documentation/virtual/kvm/msr.txt
@@ -208,7 +208,9 @@ MSR_KVM_STEAL_TIME: 0x4b564d03
208 __u64 steal; 208 __u64 steal;
209 __u32 version; 209 __u32 version;
210 __u32 flags; 210 __u32 flags;
211 __u32 pad[12]; 211 __u8 preempted;
212 __u8 u8_pad[3];
213 __u32 pad[11];
212 } 214 }
213 215
214 whose data will be filled in by the hypervisor periodically. Only one 216 whose data will be filled in by the hypervisor periodically. Only one
@@ -232,6 +234,11 @@ MSR_KVM_STEAL_TIME: 0x4b564d03
232 nanoseconds. Time during which the vcpu is idle, will not be 234 nanoseconds. Time during which the vcpu is idle, will not be
233 reported as steal time. 235 reported as steal time.
234 236
237 preempted: indicate the vCPU who owns this struct is running or
238 not. Non-zero values mean the vCPU has been preempted. Zero
239 means the vCPU is not preempted. NOTE, it is always zero if the
240 the hypervisor doesn't support this field.
241
235MSR_KVM_EOI_EN: 0x4b564d04 242MSR_KVM_EOI_EN: 0x4b564d04
236 data: Bit 0 is 1 when PV end of interrupt is enabled on the vcpu; 0 243 data: Bit 0 is 1 when PV end of interrupt is enabled on the vcpu; 0
237 when disabled. Bit 1 is reserved and must be zero. When PV end of 244 when disabled. Bit 1 is reserved and must be zero. When PV end of