From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdIqp-0007yq-Vv for qemu-devel@nongnu.org; Mon, 04 Nov 2013 07:01:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdIqj-0003t0-UV for qemu-devel@nongnu.org; Mon, 04 Nov 2013 07:01:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:63906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdIqj-0003so-Mw for qemu-devel@nongnu.org; Mon, 04 Nov 2013 07:01:41 -0500 Date: Mon, 4 Nov 2013 14:04:31 +0200 From: "Michael S. Tsirkin" Message-ID: <20131104120431.GA26395@redhat.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5277837B.10105@redhat.com> Subject: Re: [Qemu-devel] [PATCH] exec: limit system memory size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Peter Maydell , Marcel Apfelbaum , Jan Kiszka , qemu-devel@nongnu.org, Andreas =?iso-8859-1?Q?F=E4rber?= , Richard Henderson On Mon, Nov 04, 2013 at 12:22:35PM +0100, Paolo Bonzini wrote: > Il 04/11/2013 12:14, Michael S. Tsirkin ha scritto: > >> > > >> > This patch looks good; however, on top of it can you test > >> > kvm-unit-tests with TARGET_PHYS_ADDR_SPACE_BITS=64 and see whether > >> > there is a measurable slowdown (in the inl_from_qemu tests)? If not, > >> > we can just get rid of TARGET_PHYS_ADDR_SPACE_BITS in exec.c. > > I'd rather we fixed a bug first - we need to fix it on stable too - any > > cleanups can come on top. > > This is not necessarily a cleanup. Getting rid of > TARGET_PHYS_ADDR_SPACE_BITS in exec.c means fixing device-to-device DMA > bugs for example. > > Of course a smaller patch can be done that avoids the renaming of L2_* > constants. > > > 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. > > Paolo Hmm I think it's *at most* that deep but can be more shallow, no? -- MST