lkml.org 
[lkml]   [2017]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4 2/4] KVM: X86: Add paravirt remote TLB flush
On Tue, Nov 14, 2017 at 02:10:16PM +0800, Wanpeng Li wrote:
> 2017-11-13 21:02 GMT+08:00 Peter Zijlstra <peterz@infradead.org>:
> > That can be written like:
> >
> > do {
> > if (state & KVM_VCPU_PREEMPTED)
> > new_state = state | KVM_VCPU_SHOULD_FLUSH;
> > else
> > new_state = state | KVM_VCPU_IPI_PENDING;
> > } while (!try_cmpxchg(&src->preempted, state, new_state);
> >
> > if (new_state & KVM_VCPU_IPI_PENDING)
>
> Should be new_state & KVM_VCPU_SHOULD_FLUSH I think.

Quite so indeed.

\
 
 \ /
  Last update: 2017-11-14 08:36    [W:0.048 / U:16.792 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site