From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdJ0c-0003GA-L1 for qemu-devel@nongnu.org; Mon, 04 Nov 2013 07:12:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdJ0W-0006P2-Lz for qemu-devel@nongnu.org; Mon, 04 Nov 2013 07:11:54 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48618) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdJ0W-0006Oq-Ds for qemu-devel@nongnu.org; Mon, 04 Nov 2013 07:11:48 -0500 Message-ID: <52778EF8.4090006@redhat.com> Date: Mon, 04 Nov 2013 13:11:36 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <20131104060608.GA3322@redhat.com> <1383558605.2264.22.camel@localhost.localdomain> <20131104100734.GB30026@redhat.com> <52777CEA.6040205@redhat.com> <20131104111458.GA12334@redhat.com> <5277837B.10105@redhat.com> <20131104120431.GA26395@redhat.com> In-Reply-To: <20131104120431.GA26395@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] exec: limit system memory size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Peter Maydell , Marcel Apfelbaum , Jan Kiszka , qemu-devel@nongnu.org, =?ISO-8859-1?Q?Andreas_F=E4rber?= , Richard Henderson Il 04/11/2013 13:04, Michael S. Tsirkin ha scritto: > > > > Also, I'm not sure what will this test tell > > > > us: inl reads io space, not memory, right? > > > > The number of levels in the dispatch radix tree is independent of the > > size of the AddressSpace; it is P_L2_LEVELS for both the 64K io space > > and the 2^TARGET_PHYS_ADDRESS_SPACE_BITS memory space. > > Hmm I think it's *at most* that deep but can be more shallow, no? Yes, but it gets more shallow only if you have very large regions (which is obviously not the case for io space). The levels always cover the same bit range (e.g. bits 42-51 for the first level on x86). Paolo