Messages in this thread | | | Date | Mon, 21 Sep 2009 00:55:58 +0300 | From | Avi Kivity <> | Subject | Re: [PATCH] Prevent immediate process rescheduling |
| |
On 09/21/2009 12:03 AM, Langsdorf, Mark wrote: >> - we can pick one of the vcpus belonging to the same guest to improve >> the probability that the lock actually get released >> > Is there a way to find the other vcpus belonging to the > same guest? I poked around at that, but couldn't find > one. >
vcpu->kvm->vcpus[]. It doesn't give you the task_struct, but we can easily save it in vcpu_load() and release it in vcpu_put().
-- Do not meddle in the internals of kernels, for they are subtle and quick to panic.
| |