KVM: keep track of which task is running a KVM vcpu
authorRik van Riel <riel@redhat.com>
Tue, 1 Feb 2011 14:52:41 +0000 (09:52 -0500)
committerMarcelo Tosatti <mtosatti@redhat.com>
Thu, 17 Mar 2011 16:08:29 +0000 (13:08 -0300)
commit34bb10b79de7df118de832f6832efb630e646577
tree2284a88be869a13a55b0435eafa572cde9ae53aa
parent77c100c83e84316ced2507c5799f79c2c80bc6b9
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>
include/linux/kvm_host.h
virt/kvm/kvm_main.c