From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:48244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S20gE-0008DW-7q for qemu-devel@nongnu.org; Mon, 27 Feb 2012 08:31:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S20gA-0004R0-V7 for qemu-devel@nongnu.org; Mon, 27 Feb 2012 08:31:54 -0500 Received: from ozlabs.org ([203.10.76.45]:57702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S20gA-0004Qt-IH for qemu-devel@nongnu.org; Mon, 27 Feb 2012 08:31:50 -0500 Date: Mon, 27 Feb 2012 23:58:24 +1100 From: David Gibson Message-ID: <20120227125824.GJ3433@truffala.fritz.box> References: <1330054063-16860-1-git-send-email-david@gibson.dropbear.id.au> <1330054063-16860-9-git-send-email-david@gibson.dropbear.id.au> <20120224045736.GR16796@truffala.fritz.box> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 8/8] Make dma_addr_t 64 bit always List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel@nongnu.org, anthony@codemonkey.ws On Sun, Feb 26, 2012 at 09:46:52PM +0000, Blue Swirl wrote: > On Fri, Feb 24, 2012 at 04:57, David Gibson wrote: > > On Fri, Feb 24, 2012 at 02:27:43PM +1100, David Gibson wrote: > > > > Oops, ignore this one folks. =A0As is probably obvious, this was a > > testing patch not meant to go into the main series. >=20 > Actually I'm not sure what would be the correct way to calculate the > size. For example, on Sparc32 the virtual address space and CPU > registers are 32 bits, physical address space 36 bits, but device > virtual memory address space (DVMA, used by devices to talk to IOMMU) > is only 32 bits. Well, yes, in fact I think we probably do need to use 64-bit addresses always (or at least whenever we have any kind of IOMMU support available), because it's almost impossible to be certain that a platform could never have a 64-bit bus of some kind plugged in. But that's a matter for another day. --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other= _ | _way_ _around_! http://www.ozlabs.org/~dgibson