Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LOxcG-0005kk-JP for qemu-devel@nongnu.org; Mon, 19 Jan 2009 12:08:48 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LOxcF-0005ht-1Y for qemu-devel@nongnu.org; Mon, 19 Jan 2009 12:08:47 -0500 Received: from [199.232.76.173] (port=40552 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LOxcE-0005hX-Fi for qemu-devel@nongnu.org; Mon, 19 Jan 2009 12:08:46 -0500 Received: from smtp02.citrix.com ([66.165.176.63]:48556) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LOxcD-0007ZE-Bs for qemu-devel@nongnu.org; Mon, 19 Jan 2009 12:08:45 -0500 Received: from mariner.uk.xensource.com ([10.80.2.22]) by smtp01.ad.xensource.com (8.13.1/8.13.1) with ESMTP id n0JH8g3R012153 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Mon, 19 Jan 2009 09:08:44 -0800 Received: from iwj by mariner.uk.xensource.com with local (Exim 4.63) (envelope-from ) id 1LOxc9-0007xT-Fs for qemu-devel@nongnu.org; Mon, 19 Jan 2009 17:08:41 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18804.45977.473458.280620@mariner.uk.xensource.com> Date: Mon, 19 Jan 2009 17:08:41 +0000 Subject: Re: [Qemu-devel] [PATCH 1/5] Add target memory mapping API In-Reply-To: <4974A2DC.6020106@redhat.com> References: <1232308399-21679-1-git-send-email-avi@redhat.com> <1232308399-21679-2-git-send-email-avi@redhat.com> <18804.34053.211615.181730@mariner.uk.xensource.com> <497496B2.8020107@redhat.com> <49749AE1.8090400@redhat.com> <49749C61.3080304@redhat.com> <4974A2DC.6020106@redhat.com> From: Ian Jackson Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Gerd Hoffmann writes ("Re: [Qemu-devel] [PATCH 1/5] Add target memory mapping API"): >Avi Kivity wrote: >[Avi:] >>> Grant handles should be handled by a different API. >> >> That was terse... here's how I think it should be done: >> - step 1: map the grant handle into guest physical memory I agree that grant handles should be handled by a different API. But I don't see why they need to be mapped into guest physical memory, or referred to via a target_phys_addr_t at all. The only consumers of grant references in qemu are Xen-specific backend drivers, and they can call the Xen-specific grant reference APIs directly. There is no need for anyone but those backend drivers to access those pages of guest memory. So I don't see why grant references are relevant to the cpu_physical_memory_map API at all. Ian.