From: Tim Deegan Subject: Re: [PATCH 5/8] xen/arm: p2m: Add p2m_get_entry Date: Thu, 5 Dec 2013 17:09:22 +0100 Message-ID: <20131205160922.GB2093@deinos.phlegethon.org> References: <1386258131-755-1-git-send-email-julien.grall@linaro.org> <1386258131-755-6-git-send-email-julien.grall@linaro.org> <1386259632.20047.95.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VobUW-0006wm-Cw for xen-devel@lists.xenproject.org; Thu, 05 Dec 2013 16:09:28 +0000 Content-Disposition: inline In-Reply-To: <1386259632.20047.95.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xenproject.org, Julien Grall , stefano.stabellini@citrix.com, patches@linaro.org List-Id: xen-devel@lists.xenproject.org B11;rgb:0000/0000/0000At 16:07 +0000 on 05 Dec (1386256032), Ian Campbell wrote: > On Thu, 2013-12-05 at 15:42 +0000, Julien Grall wrote: > > Reuse the code of p2m_lookup and add an argument to retrieve the p2m type. > > I'd be inclined to just add the parameter and change the existing > callers to pass NULL if they don't care about the type. > > The x86 equivalent of this seems to be get_gfn_type which also takes the > p2m lock, which makes sense because you don't want the entry changing > under your feet while you do whatever you do with it. > > However, I have a feeling this is related to things like CoW and PoD > (Tim?) Yes, though in theory you could have the same sort of trouble with balloon drivers, device models moving framebuffers, &c. Tim.