From: Ian Campbell Subject: Re: [PATCH v8 4/4] xen/arm: grant: Add another entry to map MFN 1:1 in dom0 p2m Date: Wed, 21 May 2014 15:40:34 +0100 Message-ID: <1400683234.5138.3.camel@kazak.uk.xensource.com> References: <1400516640-7175-1-git-send-email-julien.grall@linaro.org> <1400516640-7175-5-git-send-email-julien.grall@linaro.org> <1400678863.4856.87.camel@kazak.uk.xensource.com> <537CAD5B.1080207@linaro.org> <1400680247.4856.100.camel@kazak.uk.xensource.com> <537CB1CF.1030206@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wn7hG-0003Br-4X for xen-devel@lists.xenproject.org; Wed, 21 May 2014 14:40:46 +0000 In-Reply-To: <537CB1CF.1030206@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, tim@xen.org, Jan Beulich , stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org On Wed, 2014-05-21 at 15:01 +0100, Julien Grall wrote: > > I'm just worried that p2m type bits are in limited supply so I want to > > be sure using new ones is justified. > > We don't really need to store those type in the P2M. We only need them > to choose the page attributes. > > We could introduce a virtual type (i.e value > p2m_max_real_type) and > store p2m_invalid in the P2M. Will finding p2m_invalid under various circumstances not confuse something somewhere? How about a single real p2m_special and the virtual types you suggest? Or, TBH, lets just use the two types you propose and do all this when we run out... A comment to the affect that the types are only used for the rw bit might serve as a hint to us in a couple of years that we can easily get rid of them... Ian.