Received: from eggs.gnu.org ([2001:4830:134:3::10]:59701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4t8n-0008EF-DX for qemu-devel@nongnu.org; Thu, 10 Nov 2016 12:27:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4t8i-0002Zd-HW for qemu-devel@nongnu.org; Thu, 10 Nov 2016 12:27:57 -0500 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:35393) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c4t8i-0002Y9-At for qemu-devel@nongnu.org; Thu, 10 Nov 2016 12:27:52 -0500 Received: by mail-wm0-x243.google.com with SMTP id a20so4485889wme.2 for ; Thu, 10 Nov 2016 09:27:52 -0800 (PST) Sender: Richard Henderson References: <20161109145748.27282-1-alex.bennee@linaro.org> <20161109145748.27282-14-alex.bennee@linaro.org> <87wpgcmomy.fsf@gmail.com> <87eg2j8g7c.fsf@linaro.org> From: Richard Henderson Message-ID: <2f256c7e-cd92-0678-db23-e269203a7164@twiddle.net> Date: Thu, 10 Nov 2016 18:27:42 +0100 MIME-Version: 1.0 In-Reply-To: <87eg2j8g7c.fsf@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v6 13/19] cputlb: atomically update tlb fields used by tlb_reset_dirty List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Alex_Benn=c3=a9e?= , Pranith Kumar Cc: pbonzini@redhat.com, qemu-devel@nongnu.org, mttcg@greensocs.com, fred.konrad@greensocs.com, a.rigo@virtualopensystems.com, cota@braap.org, nikunj@linux.vnet.ibm.com, mark.burton@greensocs.com, jan.kiszka@siemens.com, serge.fdrv@gmail.com, peter.maydell@linaro.org, claudio.fontana@huawei.com, Peter Crosthwaite On 11/10/2016 05:14 PM, Alex Bennée wrote: > Even worse than that we trip up the atomic.h QEMU_BUILD_BUG_ON with the > atomic_cmpxchg. Now I believe we can use atomic_cmpxchg__nocheck without > too much issue on x86 but we'll need to #ifdef it on detection of wide > atomics. You've already got CONFIG_ATOMIC64. And what's the fallback? We ought not be enabling mttcg for 32-bit host and 64-bit guest at all. But that doesn't help much here, where we're otherwise guest width agnostic. r~