Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iaut9-0001Yf-U5 for qemu-devel@nongnu.org; Thu, 27 Sep 2007 11:02:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iaut8-0001Wg-3z for qemu-devel@nongnu.org; Thu, 27 Sep 2007 11:02:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iaut7-0001Wa-Uo for qemu-devel@nongnu.org; Thu, 27 Sep 2007 11:02:50 -0400 Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Iaut7-0004Q6-7o for qemu-devel@nongnu.org; Thu, 27 Sep 2007 11:02:49 -0400 From: Clemens Kolbitsch Subject: Re: Re: [Qemu-devel] softmmu macro meaning Date: Thu, 27 Sep 2007 17:02:46 +0200 References: <20070927140247.10904gmx1@mx066.gmx.net> In-Reply-To: <20070927140247.10904gmx1@mx066.gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200709271702.46722.clemens.kol@gmx.at> 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 On Thursday 27 September 2007 16:01:08 qemu-devel-request@nongnu.org wrote: > > does the MEMSUFFIX macro ("kernel" / "user") mean that the memory is > > access by code running in ring0/ring3 or does this tell about the memory > > region being access (mem < or > TASK_SIZE / 0xc0000000)? > > The former. ok :-) > > > and while I'm asking two other related questions I just don't quite > > understand: > > > > 1.) why does the TLB (e.g. tlb_table[CPU_MEM_INDEX][...]) have 2 > > different arrays? is this because some CPU offer different page sizes > > depending on a TASK_SIZE border or something?? > > It makes more sense if you realize it's kernel/user mode not address > space. ok... so it's really 1 for user-mode and 1 for kernel-mode... but will kernel mode always use the TLB[0] for address translation (even for addresses at e.g. 0x0800ffff) and user mode TLB[1] (even for e.g. 0xc000abcd)? (or the other way round...) > > > 2.) the MMUSUFFIX macro ("mmu" / "cmmu") what does this stand for?? > > cmmu is used to read code to execute, IIRC (different permissions). ok, thanks!!