From: "Jan Beulich" Subject: Re: [RFC PATCH 0/2] map grant refs at pfn = mfn Date: Wed, 23 Jul 2014 12:21:40 +0100 Message-ID: <53CFB6E402000078000250CF@mail.emea.novell.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X9ucC-0003iu-Ad for xen-devel@lists.xenproject.org; Wed, 23 Jul 2014 11:21:44 +0000 In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: Julien Grall , xen-devel , Ian Campbell List-Id: xen-devel@lists.xenproject.org >>> On 08.07.14 at 17:52, wrote: > One reason for wanting the second p2m mapping is to avoid tracking mfn > to pfn mappings in the guest kernel. Since the same mfn can be granted > multiple times to the backend, finding the right pfn corresponding to a > given mfn can be difficult and expensive. Providing a second mapping at > a known address allow the kernel to access the page without knowing the > pfn. Isn't this just extending the 1:1 mapping hack, further special casing handling on ARM rather than trying to use architecture independent code in generic operations like grant (un)mapping as much as possible? Jan