From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2JdD-0000xB-UW for qemu-devel@nongnu.org; Mon, 16 May 2016 10:36:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2Jd7-0002eG-Sy for qemu-devel@nongnu.org; Mon, 16 May 2016 10:36:26 -0400 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]:36554) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2Jd7-0002dz-LK for qemu-devel@nongnu.org; Mon, 16 May 2016 10:36:21 -0400 Received: by mail-lf0-x242.google.com with SMTP id y84so14798278lfc.3 for ; Mon, 16 May 2016 07:36:21 -0700 (PDT) References: <1463404380-29302-1-git-send-email-sergey.fedorov@linaro.org> <53a44acc-2a09-c321-a649-85e659bbc1e6@twiddle.net> From: Sergey Fedorov Message-ID: <5739DAE2.3010802@gmail.com> Date: Mon, 16 May 2016 17:36:18 +0300 MIME-Version: 1.0 In-Reply-To: <53a44acc-2a09-c321-a649-85e659bbc1e6@twiddle.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] cpu-exec: Fix direct jump to TB spanning page List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson , Sergey Fedorov , qemu-devel@nongnu.org Cc: =?UTF-8?Q?Alex_Benn=c3=a9e?= , Paolo Bonzini , Peter Crosthwaite On 16/05/16 16:49, Richard Henderson wrote: > On 05/16/2016 06:13 AM, Sergey Fedorov wrote: >> It is not safe to make a direct jump to a TB spanning two pages in >> system emulation because the mapping for the second page can get changed >> but we don't take care of direct jumps in this case. > We don't? I'm pretty sure that we do... What we just do is flushing the CPU virtual address cache, see for tlb_flush() etc. Kind regards, Sergey