aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorRik van Riel <riel@redhat.com>2011-02-01 09:52:41 -0500
committerMarcelo Tosatti <mtosatti@redhat.com>2011-03-17 12:08:29 -0400
commit34bb10b79de7df118de832f6832efb630e646577 (patch)
tree2284a88be869a13a55b0435eafa572cde9ae53aa /include/linux/kvm_host.h
parent77c100c83e84316ced2507c5799f79c2c80bc6b9 (diff)
KVM: keep track of which task is running a KVM vcpu
Keep track of which task is running a KVM vcpu. This helps us figure out later what task to wake up if we want to boost a vcpu that got preempted. Unfortunately there are no guarantees that the same task always keeps the same vcpu, so we can only track the task across a single "run" of the vcpu. Signed-off-by: Rik van Riel <riel@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r--include/linux/kvm_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index c8dee22b1945..4721b11b922a 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -122,6 +122,7 @@ struct kvm_vcpu {
122 int fpu_active; 122 int fpu_active;
123 int guest_fpu_loaded, guest_xcr0_loaded; 123 int guest_fpu_loaded, guest_xcr0_loaded;
124 wait_queue_head_t wq; 124 wait_queue_head_t wq;
125 struct pid *pid;
125 int sigset_active; 126 int sigset_active;
126 sigset_t sigset; 127 sigset_t sigset;
127 struct kvm_vcpu_stat stat; 128 struct kvm_vcpu_stat stat;