From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdIF7-0007sh-7r for qemu-devel@nongnu.org; Mon, 04 Nov 2013 06:22:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdIF1-0001lA-5W for qemu-devel@nongnu.org; Mon, 04 Nov 2013 06:22:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:1491) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdIF0-0001ky-UD for qemu-devel@nongnu.org; Mon, 04 Nov 2013 06:22:43 -0500 Message-ID: <5277837B.10105@redhat.com> Date: Mon, 04 Nov 2013 12:22:35 +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> In-Reply-To: <20131104111458.GA12334@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 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