From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHsSw-0001tx-36 for qemu-devel@nongnu.org; Wed, 22 Jul 2015 07:45:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHsSv-00070M-9B for qemu-devel@nongnu.org; Wed, 22 Jul 2015 07:45:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHsSv-00070F-3g for qemu-devel@nongnu.org; Wed, 22 Jul 2015 07:45:37 -0400 References: <1435656909-29116-1-git-send-email-serge.fdrv@gmail.com> <55AF3513.5000208@gmail.com> From: Paolo Bonzini Message-ID: <55AF825C.1080705@redhat.com> Date: Wed, 22 Jul 2015 13:45:32 +0200 MIME-Version: 1.0 In-Reply-To: <55AF3513.5000208@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] cpu-exec: Do not invalidate original TB in cpu_exec_nocache() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sergey Fedorov , qemu-devel@nongnu.org Cc: Pavel Dovgalyuk On 22/07/2015 08:15, Sergey Fedorov wrote: > ping. Hi, this patch was a bit late for QEMU 2.4, but it will be included in 2.5. Paolo > On 30.06.2015 12:35, Sergey Fedorov wrote: >> > Instead of invalidating an original TB in cpu_exec_nocache() >> > prematurely, just save a link to it in the temporary generated TB. If >> > cpu_io_recompile() is raised subsequently from the temporary TB, >> > invalidate the original one as well. That allows reusing the original TB >> > each time cpu_exec_nocache() is called to handle expired instruction >> > counter in icount mode. >> > >> > Signed-off-by: Sergey Fedorov >> > --- >> > >> > v2: >> > * take tcg_ctx.tb_ctx.tb_invalidated_flag into account