lkml.org 
[lkml]   [2009]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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.



\
 
 \ /
  Last update: 2009-09-20 23:59    [W:0.186 / U:0.684 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site