From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDTnU-0004eb-At for qemu-devel@nongnu.org; Fri, 10 Jul 2015 04:36:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZDTnR-0001mb-2u for qemu-devel@nongnu.org; Fri, 10 Jul 2015 04:36:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDTnQ-0001m3-TH for qemu-devel@nongnu.org; Fri, 10 Jul 2015 04:36:36 -0400 Date: Fri, 10 Jul 2015 14:06:32 +0530 From: Amit Shah Message-ID: <20150710083632.GA16278@grmbl.mre> References: <1434450415-11339-1-git-send-email-dgilbert@redhat.com> <1434450415-11339-5-git-send-email-dgilbert@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1434450415-11339-5-git-send-email-dgilbert@redhat.com> Subject: Re: [Qemu-devel] [PATCH v7 04/42] qemu_ram_block_from_host List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert (git)" Cc: aarcange@redhat.com, yamahata@private.email.ne.jp, quintela@redhat.com, liang.z.li@intel.com, qemu-devel@nongnu.org, luis@cs.umu.se, pbonzini@redhat.com, david@gibson.dropbear.id.au On (Tue) 16 Jun 2015 [11:26:17], Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > Postcopy sends RAMBlock names and offsets over the wire (since it can't > rely on the order of ramaddr being the same), and it starts out with > HVA fault addresses from the kernel. > > qemu_ram_block_from_host translates a HVA into a RAMBlock, an offset > in the RAMBlock and the global ram_addr_t value. > > Rewrite qemu_ram_addr_from_host to use qemu_ram_block_from_host. > > Provide qemu_ram_get_idstr since its the actual name text sent on the > wire. > > Signed-off-by: Dr. David Alan Gilbert > Reviewed-by: David Gibson Reviewed-by: Amit Shah Amit