From: Ian Campbell Subject: Re: [PATCH v2 4/6] xen/arm: implement get/put_page_type Date: Tue, 24 Jul 2012 11:42:36 +0100 Message-ID: <1343126556.18971.6.camel@zakaz.uk.xensource.com> References: <1342796758-4958-1-git-send-email-stefano.stabellini@eu.citrix.com> <1342796758-4958-4-git-send-email-stefano.stabellini@eu.citrix.com> <1343059687.5797.74.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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: "xen-devel@lists.xensource.com" , "Tim.Deegan@xen.org" List-Id: xen-devel@lists.xenproject.org On Tue, 2012-07-24 at 11:27 +0100, Stefano Stabellini wrote: > > In fact, do the types make any sense at all for ARM? Is PGT_writable is > > really only meaningful when you have direct paging? > > I am starting to think that a better way to implement get_page_type is: > > int get_page_type(struct page_info *page, unsigned long type) > { > return 1; > } Would you need to take/release a regular reference count too? Or does common code always ensure it has a normal reference when manipulating types? Ian.