From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqKAu-0006YA-18 for qemu-devel@nongnu.org; Tue, 10 Dec 2013 05:04:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqKAp-0003l6-9p for qemu-devel@nongnu.org; Tue, 10 Dec 2013 05:04:19 -0500 Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:34903 helo=socrates.bennee.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqKAp-0003kv-35 for qemu-devel@nongnu.org; Tue, 10 Dec 2013 05:04:15 -0500 References: From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: Date: Tue, 10 Dec 2013 10:04:14 +0000 Message-ID: <87y53t58f5.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] save compiled qemu traces. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Xin Tong , QEMU Developers peter.maydell@linaro.org writes: > On 9 December 2013 06:36, Xin Tong wrote: >> Is it possible for QEMU to obviate some of the translations by attaching a >> signature (e.g. a hash) with every translated basic block and try to reuse >> translated basic block based on the signature as much as possible ? Reuses >> can be a result of rerunning programs or same libraries statically linked to >> programs. > > We already cache translated results. See tb_find_fast() > and tb_find_slow() which do the lookup into the cache. These are for the current execution context though aren't they? I thought Xin was talking about caching translations between invocations of QEMU. I suspect address space randomisation would be another wrinkle in the side of any such scheme though. > > thanks > -- PMM -- Alex Bennée QEMU/KVM Hacker for Linaro