Received: from eggs.gnu.org ([2001:4830:134:3::10]:33327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFoil-0001Ng-92 for qemu-devel@nongnu.org; Wed, 22 Jun 2016 16:26:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFoig-0004Lv-3i for qemu-devel@nongnu.org; Wed, 22 Jun 2016 16:25:58 -0400 Received: from mail-qk0-x234.google.com ([2607:f8b0:400d:c09::234]:34537) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFoif-0004Lq-Vo for qemu-devel@nongnu.org; Wed, 22 Jun 2016 16:25:54 -0400 Received: by mail-qk0-x234.google.com with SMTP id t127so81512402qkf.1 for ; Wed, 22 Jun 2016 13:25:53 -0700 (PDT) Sender: Richard Henderson References: <20160618040343.19517-1-bobby.prani@gmail.com> <20160618040343.19517-11-bobby.prani@gmail.com> <576AEDB7.9040004@gmail.com> From: Richard Henderson Message-ID: <0b9fae00-8ecb-551f-5bd8-94abc6bdd94c@twiddle.net> Date: Wed, 22 Jun 2016 13:25:50 -0700 MIME-Version: 1.0 In-Reply-To: <576AEDB7.9040004@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC v3 PATCH 10/14] tcg/tci: Add support for fence List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sergey Fedorov , Pranith Kumar , Stefan Weil , "open list:All patches CC here" Cc: alex.bennee@linaro.org On 06/22/2016 12:57 PM, Sergey Fedorov wrote: >> > @@ -1236,6 +1236,9 @@ uintptr_t tcg_qemu_tb_exec(CPUArchState *env, uint8_t *tb_ptr) >> > tcg_abort(); >> > } >> > break; >> > + case INDEX_op_mb: >> > + smp_mb(); > I think we could distinguish smp_rmb(), smp_wmb() and smp_mb() here. I don't. The extra unpredictable branch is not likely to be worthwhile. If we want anything finer grained for tci, would should revisit the complete rewrite that I did a year to two ago. r~