From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8WXI-0008OS-47 for qemu-devel@nongnu.org; Fri, 26 Jun 2015 12:31:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z8WXE-0002a8-VR for qemu-devel@nongnu.org; Fri, 26 Jun 2015 12:31:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8WXE-0002a1-Pt for qemu-devel@nongnu.org; Fri, 26 Jun 2015 12:31:24 -0400 References: <1435330053-18733-1-git-send-email-fred.konrad@greensocs.com> <1435330053-18733-16-git-send-email-fred.konrad@greensocs.com> <558D6C7E.6020905@redhat.com> <558D75D0.6060906@greensocs.com> <558D776E.20705@redhat.com> <558D7E11.80807@greensocs.com> From: Paolo Bonzini Message-ID: <558D7E56.5060306@redhat.com> Date: Fri, 26 Jun 2015 18:31:18 +0200 MIME-Version: 1.0 In-Reply-To: <558D7E11.80807@greensocs.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH V6 15/18] cpu: introduce tlb_flush*_all. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Frederic Konrad , Peter Maydell Cc: mttcg@greensocs.com, Alexander Graf , Alexander Spyridakis , Mark Burton , QEMU Developers , Alistair Francis , Guillaume Delbergue , =?UTF-8?Q?Alex_Benn=c3=a9e?= On 26/06/2015 18:30, Frederic Konrad wrote: > Yes this is not the case as I implemented it. > > The rest of the TB will be executed before the tlb_flush work really > happen. The old version did this, was slow and was a mess (if two > VCPUs want to tlb_flush at the same time and an other > tlb_flush_page.. it becomes tricky..) Have you tried implementing the solution based on cpu->halted? > I think it's not really terrible if the other VCPU execute some > stuff before doing the tlb_flush.? So the solution would be only to > cut the TranslationBlock after instruction which require a > tlb_flush? Yes, this is required too. Paolo