From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:44812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcItj-0004gF-G7 for qemu-devel@nongnu.org; Thu, 30 Jun 2011 11:11:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QcIth-0000NF-Mq for qemu-devel@nongnu.org; Thu, 30 Jun 2011 11:11:19 -0400 Received: from cantor2.suse.de ([195.135.220.15]:53764 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcIth-0000NB-CS for qemu-devel@nongnu.org; Thu, 30 Jun 2011 11:11:17 -0400 Message-ID: <4E0C9214.80702@suse.de> Date: Thu, 30 Jun 2011 17:11:16 +0200 From: Alexander Graf MIME-Version: 1.0 References: <1309195566-29207-1-git-send-email-stefano.stabellini@eu.citrix.com> In-Reply-To: <1309195566-29207-1-git-send-email-stefano.stabellini@eu.citrix.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] qemu_ram_ptr_length: take ram_addr_t as arguments List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: stefano.stabellini@eu.citrix.com Cc: peter.maydell@linaro.org, xen-devel@lists.xensource.com, qemu-devel@nongnu.org On 06/27/2011 07:26 PM, stefano.stabellini@eu.citrix.com wrote: > From: Stefano Stabellini > > qemu_ram_ptr_length should take ram_addr_t as argument rather than > target_phys_addr_t because is doing comparisons with RAMBlock addresses. > > cpu_physical_memory_map should create a ram_addr_t address to pass to > qemu_ram_ptr_length from PhysPageDesc phys_offset. > > Remove code after abort() in qemu_ram_ptr_length. > > > Changes in v2: > > - handle 0 size in qemu_ram_ptr_length; > > - rename addr1 to raddr; > > - initialize raddr to ULONG_MAX. > Thanks, applied to the xen-next branch. Alex