From: Daniel Kiper Subject: Re: [PATCH RFC 1/7] xen/x86: Add mbd.h header file Date: Wed, 3 Sep 2014 17:16:03 +0200 Message-ID: <20140903151603.GE3459@olila.local.net-space.pl> References: <1407539046-16910-1-git-send-email-daniel.kiper@oracle.com> <1407539046-16910-2-git-send-email-daniel.kiper@oracle.com> <53E8ADBB020000780002B0A6@mail.emea.novell.com> <1409753478.23789.35.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 1XPCIY-0003ut-Ap for xen-devel@lists.xenproject.org; Wed, 03 Sep 2014 15:16:38 +0000 Content-Disposition: inline In-Reply-To: <1409753478.23789.35.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: keir@xen.org, Jan Beulich , Stefano Stabellini , roy.franz@linaro.org, ning.sun@intel.com, ross.philipson@citrix.com, xen-devel@lists.xenproject.org, qiaowei.ren@intel.com, richard.l.maliszewski@intel.com, gang.wei@intel.com, fu.wei@linaro.org List-Id: xen-devel@lists.xenproject.org On Wed, Sep 03, 2014 at 03:11:18PM +0100, Ian Campbell wrote: > On Mon, 2014-08-11 at 17:16 +0100, Stefano Stabellini wrote: > > Also in the interest of code sharing across multiple arches, it seems to > > me that these struct should be common code. > > I don't intend to block the existing arm64 UEFI work for not using this > new infrastructure, so any code sharing common stuff would have to come > later. > > Whether it makes sense to preemptively make this new stuff common I'm > not sure. As it stands the mem_* and mmap(_size) fields aren't really > architecture agnostic. I thought about sharing xbi_t instead of mbd_t (please look into patch 2 in this series). xbi_t could contain arch member (I am not sure about that yet; Currently my patches use idea similar to page_info struct - I prefer this solution) which would be used to store arch specific stuff. Fortunately as I can see only arch specific code touches arch specific members. So it looks that xbi_t with common members among archs should work on any architecture. Daniel