From: Ian Campbell Subject: Re: [PATCH ARM v4 12/12] mini-os: added ARM grant table initialisation Date: Wed, 25 Jun 2014 17:50:53 +0100 Message-ID: <1403715053.16595.3.camel@kazak.uk.xensource.com> References: <1403104106-32538-1-git-send-email-talex5@gmail.com> <1403104106-32538-13-git-send-email-talex5@gmail.com> <53A1CC15.4050506@linaro.org> 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 1WzqPS-0003dL-K2 for xen-devel@lists.xenproject.org; Wed, 25 Jun 2014 16:50:58 +0000 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: Thomas Leonard Cc: David Scott , Anil Madhavapeddy , Julien Grall , Samuel Thibault , xen-devel@lists.xenproject.org, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Wed, 2014-06-25 at 17:41 +0100, Thomas Leonard wrote: > On 18 June 2014 18:27, Julien Grall wrote: > > Hi Thomas, > > > > On 06/18/2014 04:08 PM, Thomas Leonard wrote: > >> + > >> +/* Get Xen's sugggested physical page assignments for the grant table. */ Too many g's. > >> +static grant_entry_t *get_gnttab_base(void) > >> +{ > >> + int hypervisor; > >> + > >> + hypervisor = fdt_path_offset(device_tree, "/hypervisor"); > > > > Same comment as on patch #11, you need to search the hypervisor node via > > the compatible string. > > It's not clear to me what I should do with this attribute. On > Xen/unstable, it contains the single value "xen,xen-4.5", It should contain "xen,xen-X.Y\0xen,xen\0\0", i.e. multiple strings. If you don't care about the specific version then you should check for "xen,xen" somewhere in the list. (This is how device tree compatibile strings work, more specific to more general). > meaning (I > think) that Xen 4.5 is incompatible with Xen 4.4. But I'd still like > Mini-OS to run. Presumably, 4.6 will be incompatible too. What could I > do if the value doesn't match except try to use it anyway? > >