Re: [PATCH 3/4 changelog-v2] KVM: Switch to srcu-less get_dirty_log()

From: Marcelo Tosatti
Date: Wed Mar 07 2012 - 18:28:08 EST


On Wed, Mar 07, 2012 at 05:18:26PM +0900, Takuya Yoshikawa wrote:
> Marcelo Tosatti <mtosatti@xxxxxxxxxx> wrote:
>
> > > We cannot drop the lock.
> > > Do you mean doing TLB flush each time before dropping the lock?
> >
> > Yes, only if there is contention (see cond_resched_lock).
>
> But how can we conditionally call kvm_flush_remote_tlbs() from
> inside __cond_resched_lock right before spin_unlock()?
>
> We need another API.

Yep, a callback into cond_resched_lock_cb (or something)
could do it.

--
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/