From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8ZOP-0000ex-4z for qemu-devel@nongnu.org; Thu, 02 Jun 2016 16:39:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b8ZOK-0002Si-5g for qemu-devel@nongnu.org; Thu, 02 Jun 2016 16:39:00 -0400 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]:33041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8ZOJ-0002SV-FC for qemu-devel@nongnu.org; Thu, 02 Jun 2016 16:38:56 -0400 Received: by mail-lf0-x243.google.com with SMTP id w16so6174732lfd.0 for ; Thu, 02 Jun 2016 13:38:55 -0700 (PDT) References: <20160531183928.29406-1-bobby.prani@gmail.com> <20160531183928.29406-2-bobby.prani@gmail.com> <57505F1A.3020808@gmail.com> <68c32d50-adc2-25b2-b136-2a486f6b3de7@twiddle.net> From: Sergey Fedorov Message-ID: <5750995D.6030005@gmail.com> Date: Thu, 2 Jun 2016 23:38:53 +0300 MIME-Version: 1.0 In-Reply-To: <68c32d50-adc2-25b2-b136-2a486f6b3de7@twiddle.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC v2 PATCH 01/13] Introduce TCGOpcode for memory barrier List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson , Pranith Kumar , "open list:All patches CC here" Cc: serge.fdrv@linaro.org, alex.bennee@linaro.org On 02/06/16 23:36, Richard Henderson wrote: > On 06/02/2016 09:30 AM, Sergey Fedorov wrote: >> I think we need to extend TCG load/store instruction attributes to >> provide information about guest ordering requirements and leave this TCG >> operation only for explicit barrier instruction translation. > > I do not agree. I think separate barriers are much cleaner and easier > to manage and reason with. > How are we going to emulate strongly-ordered guests on weakly-ordered hosts then? I think if every load/store operation must specify which ordering it implies then this task would be quite simple. Kind regards, Sergey