From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buLU2-0001Pg-4f for qemu-devel@nongnu.org; Wed, 12 Oct 2016 11:30:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buLTy-0006rB-6C for qemu-devel@nongnu.org; Wed, 12 Oct 2016 11:30:18 -0400 Received: from mail-yb0-x22a.google.com ([2607:f8b0:4002:c09::22a]:33560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buLTy-0006r1-2T for qemu-devel@nongnu.org; Wed, 12 Oct 2016 11:30:14 -0400 Received: by mail-yb0-x22a.google.com with SMTP id e20so20823922ybb.0 for ; Wed, 12 Oct 2016 08:30:13 -0700 (PDT) References: From: Pranith Kumar In-reply-to: Date: Wed, 12 Oct 2016 11:30:11 -0400 Message-ID: <87vawxd1q4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] MTTCG memory ordering List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Alex =?utf-8?Q?Benn=C3=A9e?= , qemu-devel , Richard Henderson Hi Stefan, Stefan Hajnoczi writes: > Hi Pranith, > I was curious about the status of your MTTCG GSoC work: > > I saw your fence series which implements the noop memory barrier/fence > instructions on various architectures, but I wasn't sure if that also > covers the case where a strong target is emulated on a weak host. > No, this work is still pending. The current implementation only supports weak on strong (the simplest case) by emitting barriers explicitly. > Did you make TCG automatically emit barriers so stronger targets (x86) > run correctly on weaker targets (ARM)? We did consider doing this by emitting barriers implicitly for each memory instruction of a strong target but decided that it would be too costly. There is, AFAIK, no trivial solution to avoiding this overhead as of now. I will start working on this next step soon, once I finish the tcg test setup. Thanks, -- Pranith