Re: [RFC PATCH 1/3] kvm: keep track of which task is running a KVM vcpu

Srivatsa Vaddagiri
2010-12-03T12:17:46Z

On Thu, Dec 02, 2010 at 02:43:24PM -0500, Rik van Riel wrote:
> mutex_lock(&vcpu->mutex);
> + vcpu->task = current;

Shouldn't we grab reference to current task_struct before storing a pointer to
it?

- vatsa