Re: [PATCH] Prevent immediate process rescheduling

From: Avi Kivity
Date: Sun Sep 20 2009 - 17:56:31 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/