Thread (22 messages) 22 messages, 8 authors, 2016-10-24

RE: [PATCH v5 9/9] Documentation: virtual: kvm: Support vcpu preempted check

From: David Laight <hidden>
Date: 2016-10-21 11:30:37
Also in: kvm, linux-s390, lkml

From: Pan Xinhui
quoted hunk ↗ jump to hunk
Sent: 20 October 2016 22:28
Commit ("x86, kvm: support vcpu preempted check") add one field "__u8
preempted" into struct kvm_steal_time. This field tells if one vcpu is
running or not.
=20
It is zero if 1) some old KVM deos not support this filed. 2) the vcpu is
preempted. Other values means the vcpu has been preempted.
=20
Signed-off-by: Pan Xinhui <redacted>
---
 Documentation/virtual/kvm/msr.txt | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
=20
diff --git a/Documentation/virtual/kvm/msr.txt b/Documentation/virtual/kv=
m/msr.txt
quoted hunk ↗ jump to hunk
index 2a71c8f..3376f13 100644
--- a/Documentation/virtual/kvm/msr.txt
+++ b/Documentation/virtual/kvm/msr.txt
@@ -208,7 +208,8 @@ MSR_KVM_STEAL_TIME: 0x4b564d03
 		__u64 steal;
 		__u32 version;
 		__u32 flags;
-		__u32 pad[12];
+		__u8  preempted;
+		__u32 pad[11];
 	}
I think I'd be explicit about the 3 pad bytes you've left.

	David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help