From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HWrQp-00055h-UT for qemu-devel@nongnu.org; Thu, 29 Mar 2007 06:00:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HWrQo-00054d-3r for qemu-devel@nongnu.org; Thu, 29 Mar 2007 06:00:35 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWrQn-00054R-Tp for qemu-devel@nongnu.org; Thu, 29 Mar 2007 05:00:33 -0500 Received: from mailout1.informatik.tu-muenchen.de ([131.159.0.18]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HWrOE-0006FT-7Q for qemu-devel@nongnu.org; Thu, 29 Mar 2007 05:57:54 -0400 Received: from michael5ee790a (pD9E1CA05.dip0.t-ipconnect.de [217.225.202.5]) by mail.in.tum.de (Postfix) with ESMTP id DB5A0279F for ; Thu, 29 Mar 2007 11:57:50 +0200 (MEST) From: "Michael Neubauer" Date: Thu, 29 Mar 2007 11:58:33 +0200 Message-ID: <000001c771e8$cff5c3d0$14b2a8c0@michael5ee790a> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Qemu memory management Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hello, I'm trying to learn a bit more about the Qemu SoftMMU. The following quotation is taken from section 2.10 of the "Qemu Internals" documentation. "To avoid flushing the translated code each time the MMU mappings change, QEMU uses a physically indexed translation cache. It means that each TB is indexed with its physical address." Why does a cache like that prevent the translated code from being flushed? If a translated code is relocated in physical memory (e. g. after a paging swap operation) that would render the cache useless in my opinion. Maybe I'm just mixing too many things up here since I don't really have a lot of experience in the whole operating systems stuff. I would really appreciate it if someone could give me a hint. I'm sorry if that's the wrong place to ask questions like the one above. Please let me know if there's any other comprehensive resource of information available. -- Michael