From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: Re: [PATCH v2 0/3] x86: faster mb()+other barrier.h tweaks Date: Wed, 27 Jan 2016 16:18:45 +0200 Message-ID: <20160127161731-mutt-send-email-mst@redhat.com> References: <1452635935-5439-1-git-send-email-mst@redhat.com> <56957D54.5000602@zytor.com> <20160126101921-mutt-send-email-mst@redhat.com> <56A7E722.7030701@zytor.com> <20160127120222-mutt-send-email-mst@redhat.com> <20160127141409.GQ6357@twins.programming.kicks-ass.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20160127141409.GQ6357@twins.programming.kicks-ass.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Peter Zijlstra Cc: Davidlohr Bueso , Davidlohr Bueso , the arch/x86 maintainers , linux-kernel@vger.kernel.org, virtualization , Borislav Petkov , "H. Peter Anvin" , Thomas Gleixner , "Paul E. McKenney" , Linus Torvalds , Ingo Molnar List-Id: virtualization@lists.linuxfoundation.org On Wed, Jan 27, 2016 at 03:14:09PM +0100, Peter Zijlstra wrote: > On Wed, Jan 27, 2016 at 04:07:56PM +0200, Michael S. Tsirkin wrote: > > mwait_idle is the only one that calls smp_mb and not mb() > > I couldn't figure out why - original patches did mb() > > there. > > That probably wants changing. That said, running UP kernels on affected > hardware is 'unlikely' :-) OK that's nice. After changing that one place, everyone calls mb() around clflush so it should be safe to change smp_mb away from mfence without breaking things. I'm testing v4 that does this. -- MST