lkml.org 
[lkml]   [2012]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 3/4 changelog-v2] KVM: Switch to srcu-less get_dirty_log()
    On Wed, Mar 07, 2012 at 05:18:26PM +0900, Takuya Yoshikawa wrote:
    > Marcelo Tosatti <mtosatti@redhat.com> 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.



    \
     
     \ /
      Last update: 2012-03-08 00:31    [W:0.044 / U:0.180 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site