From: "Jan Beulich" Subject: Re: [PATCH v2 0/2] map grant refs at pfn = mfn Date: Thu, 24 Jul 2014 07:37:48 +0100 Message-ID: <53D0C5DC020000780002557C@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.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XACf1-0004qp-Hg for xen-devel@lists.xenproject.org; Thu, 24 Jul 2014 06:37:51 +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 23.07.14 at 19:18, 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. Since you didn't respond to my earlier respective question: Is this really the route you want to go? Bake the 1:1-ness into the kernel? Iiuc this implies no backends using grants in other than Dom0... Or else you still need to have the M->P tracking code in place, and I would wonder whether bypassing it is really such a significant win. Jan