[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4AB6A4EE.3060904@redhat.com>
Date: Mon, 21 Sep 2009 00:55:58 +0300
From: Avi Kivity <avi@...hat.com>
To: "Langsdorf, Mark" <mark.langsdorf@....com>
CC: Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Ingo Molnar <mingo@...e.hu>, Mike Galbraith <efault@....de>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists