From: Ian Campbell Subject: Re: [RFC 13/14] xen/xsm: Add support for device tree Date: Fri, 14 Mar 2014 17:34:02 +0000 Message-ID: <1394818442.6065.19.camel@kazak.uk.xensource.com> References: <1394640969-25583-1-git-send-email-julien.grall@linaro.org> <1394640969-25583-14-git-send-email-julien.grall@linaro.org> 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 1WOVzj-0005j8-2M for xen-devel@lists.xenproject.org; Fri, 14 Mar 2014 17:34:17 +0000 In-Reply-To: <1394640969-25583-14-git-send-email-julien.grall@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, Daniel De Graaf , tim@xen.org, stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org On Wed, 2014-03-12 at 16:16 +0000, Julien Grall wrote: > This patch adds a new module "xen,xsm-blob" to allow the user to load the XSM > policy when Xen is booting. While xsm_dt_policy_init does seem DT specific the xem_dt_init is very similar to the xsm_multiboot_init. Can they not be a common function with #ifdef HAVE_MULTIBOOT / #ifdef HAVE_DEVICETREE around the relevant specific bits (essentially just the call to the relevant policy_init)? Or at least refactor the tail of xsm_init into xsm_core_init which both cases can call into.