From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKmmq-0001cH-KC for qemu-devel@nongnu.org; Wed, 06 Jul 2016 09:22:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKmmm-0001aZ-HK for qemu-devel@nongnu.org; Wed, 06 Jul 2016 09:22:43 -0400 Received: from mail-lf0-x235.google.com ([2a00:1450:4010:c07::235]:33208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKmmm-0001aQ-9L for qemu-devel@nongnu.org; Wed, 06 Jul 2016 09:22:40 -0400 Received: by mail-lf0-x235.google.com with SMTP id f6so154467316lfg.0 for ; Wed, 06 Jul 2016 06:22:40 -0700 (PDT) References: <1467791668-2937838-1-git-send-email-snarpix@gmail.com> <577CDBC7.605@linaro.org> <577CFF60.5030805@linaro.org> From: Sergey Fedorov Message-ID: <577D061E.8050309@linaro.org> Date: Wed, 6 Jul 2016 16:22:38 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] translate-all: Bugfix for user-mode self-modifying code in 2 page long TB List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stanislav Shmarov Cc: Richard Henderson , Peter Crosthwaite , Paolo Bonzini , qemu-devel@nongnu.org On 06/07/16 16:22, Stanislav Shmarov wrote: > > Yes, exactly. > > There is no point for returning to main loop immediately when current > TB is found on host page and is retranslated. We can continue > invalidation of TBs, and finally remove host page write protection. So > there will be no second SEGFAULT. > > And when generating TB for next instructions, host page will be locked > again, if TB includes instructions from that page. > I think that could work. Regards, Sergey