summaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorRik van Riel2011-02-01 15:52:41 +0100
committerMarcelo Tosatti2011-03-17 17:08:29 +0100
commit34bb10b79de7df118de832f6832efb630e646577 (patch)
tree2284a88be869a13a55b0435eafa572cde9ae53aa /include/linux/kvm_host.h
parentexport pid symbols needed for kvm_vcpu_on_spin (diff)
downloadkernel-qcow2-linux-34bb10b79de7df118de832f6832efb630e646577.tar.gz
kernel-qcow2-linux-34bb10b79de7df118de832f6832efb630e646577.tar.xz
kernel-qcow2-linux-34bb10b79de7df118de832f6832efb630e646577.zip
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 {
int fpu_active;
int guest_fpu_loaded, guest_xcr0_loaded;
wait_queue_head_t wq;
+ struct pid *pid;
int sigset_active;
sigset_t sigset;
struct kvm_vcpu_stat stat;