Received: from eggs.gnu.org ([140.186.70.92]:41734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RL2cX-0001Iz-4p for qemu-devel@nongnu.org; Mon, 31 Oct 2011 20:54:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RL2cU-0002L6-CZ for qemu-devel@nongnu.org; Mon, 31 Oct 2011 20:54:28 -0400 Received: from e23smtp03.au.ibm.com ([202.81.31.145]:35812) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RL2cT-0002IP-OT for qemu-devel@nongnu.org; Mon, 31 Oct 2011 20:54:26 -0400 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [202.81.31.247]) by e23smtp03.au.ibm.com (8.14.4/8.13.1) with ESMTP id pA10maxm007123 for ; Tue, 1 Nov 2011 11:48:36 +1100 Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pA10pLgf2191400 for ; Tue, 1 Nov 2011 11:51:25 +1100 Received: from d23av01.au.ibm.com (loopback [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pA10sALu008024 for ; Tue, 1 Nov 2011 11:54:11 +1100 Date: Tue, 1 Nov 2011 11:54:01 +1100 From: David Gibson Message-ID: <20111101005401.GC6895@truffala.fritz.box> References: <1319983368-21801-1-git-send-email-avi@redhat.com> <4EAEC75B.6020006@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4EAEC75B.6020006@codemonkey.ws> Subject: Re: [Qemu-devel] [PULL 0/3] 128-bit support for the memory API List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Blue Swirl , Avi Kivity , qemu-devel@nongnu.org On Mon, Oct 31, 2011 at 11:05:47AM -0500, Anthony Liguori wrote: > On 10/30/2011 09:02 AM, Avi Kivity wrote: > >This somewhat controversial patchset converts internal arithmetic in the > >memory API to 128 bits. > > Given the level of controversy, what do you think about deferring > this to 1.1? If it's deferred then one of my rearrangements for the arithmetic must go in instead. These patches fix real bugs, that bite us on pseries. It's not the only way to fix those bugs, and probably not even my personally preferred way to fix them, but they need to be fixed _somehow_ for 1.0. > > Regards, > > Anthony Liguori > > > > >It has been argued that with careful coding we can make 64-bit work as > >well. I don't think this is true in general - a memory router can adjust > >addresses either forwards or backwards, and some buses (PCIe) need the > >full 64-bit space - though it's probably the case for all the configurations > >we support today. Regardless, the need for careful coding means subtle bugs, > >which I don't want in a core API that is driven by guest supplied values. > > > >Avi Kivity (3): > > Add support for 128-bit arithmetic > > memory: use 128-bit integers for sizes and intermediates > > Adjust system and pci address spaces to full 64-bit > > > > exec.c | 2 +- > > hw/pc_piix.c | 2 +- > > hw/pci_bridge.c | 2 +- > > int128.h | 116 ++++++++++++++++++++++++++++++++ > > memory.c | 196 ++++++++++++++++++++++++++++++++---------------------- > > memory.h | 3 +- > > 6 files changed, 237 insertions(+), 84 deletions(-) > > create mode 100644 int128.h > > > -- 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