From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: Re: [PATCH v4 5/5] x86: drop mfence in favor of lock+addl Date: Wed, 27 Jan 2016 19:56:37 +0200 Message-ID: <20160127195314-mutt-send-email-mst@redhat.com> References: <1453904765-11073-1-git-send-email-mst@redhat.com> <1453904765-11073-6-git-send-email-mst@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: 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: Linus Torvalds Cc: Davidlohr Bueso , Davidlohr Bueso , Peter Zijlstra , Andrey Konovalov , the arch/x86 maintainers , Linux Kernel Mailing List , virtualization , Andy Lutomirski , Borislav Petkov , Borislav Petkov , Andy Lutomirski , "H. Peter Anvin" , Thomas Gleixner , "Paul E. McKenney" , Ingo Molnar , Ingo Molnar List-Id: virtualization@lists.linuxfoundation.org On Wed, Jan 27, 2016 at 09:37:45AM -0800, Linus Torvalds wrote: > On Wed, Jan 27, 2016 at 7:10 AM, Michael S. Tsirkin wrote: > > > > -#define __smp_mb() mb() > > +#define __smp_mb() asm volatile("lock; addl $0,-4(%%esp)" ::: "memory", "cc") > > So this doesn't look right for x86-64. Using %esp rather than %rsp. > How did that even work for you? > > Linus Oops, didn't test this version properly. Pls disregard, I'll repost after some proper testing. -- MST