Received: from eggs.gnu.org ([2001:4830:134:3::10]:35515) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4tL6-0002MD-2b for qemu-devel@nongnu.org; Thu, 10 Nov 2016 12:40:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4tL2-0002ET-5O for qemu-devel@nongnu.org; Thu, 10 Nov 2016 12:40:40 -0500 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:36041) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c4tL1-0002E1-UU for qemu-devel@nongnu.org; Thu, 10 Nov 2016 12:40:36 -0500 Received: by mail-wm0-x243.google.com with SMTP id m203so2881847wma.3 for ; Thu, 10 Nov 2016 09:40:35 -0800 (PST) Sender: Richard Henderson References: <20161109145748.27282-1-alex.bennee@linaro.org> <20161109145748.27282-12-alex.bennee@linaro.org> <7dcc34b1-4fb2-1b6b-cd31-4739879c5a82@twiddle.net> <87bmxn8cic.fsf@linaro.org> From: Richard Henderson Message-ID: <357b26a2-cb52-3afd-3fc8-80d37ef62b9a@twiddle.net> Date: Thu, 10 Nov 2016 18:40:19 +0100 MIME-Version: 1.0 In-Reply-To: <87bmxn8cic.fsf@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v6 11/19] cputlb: introduce tlb_flush_* async work. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Alex_Benn=c3=a9e?= Cc: pbonzini@redhat.com, qemu-devel@nongnu.org, mttcg@greensocs.com, fred.konrad@greensocs.com, a.rigo@virtualopensystems.com, cota@braap.org, bobby.prani@gmail.com, 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 06:34 PM, Alex Bennée wrote: > So to properly support ARM TLB flush semantics I want to move some of > the looping in the helpers into cputlb.c so I'm thinking we'll have: > > tlb_flush_page_all_cpus > tlb_flush_by_mmuidx_all_cpus > tlb_flush_page_by_mmuidx_all_cpus Sounds good, thanks. > In fact for ARM we'll be able to put off the reckoning until a DMB > instruction comes along and we can force synchronisation at that point > but I'm assuming there must be other architectures with stricter > requirements. Yes, I can think of at least one arch for which the cross-cpu flush must finish before the source cpu continues. r~