From: Ian Campbell Subject: Re: [PATCH V4 02/15] Move x86 specific funtions/variables to arch header Date: Fri, 12 Sep 2014 10:43:53 +0100 Message-ID: <1410515033.567.24.camel@kazak.uk.xensource.com> References: <1410310325-4509-1-git-send-email-roy.franz@linaro.org> <1410310325-4509-3-git-send-email-roy.franz@linaro.org> <5411C7B60200007800033F12@mail.emea.novell.com> <5412B70C02000078000344D2@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5412B70C02000078000344D2@mail.emea.novell.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: Jan Beulich Cc: keir , tim , xen-devel , Roy Franz , Stefano Stabellini , Fu Wei List-Id: xen-devel@lists.xenproject.org On Fri, 2014-09-12 at 08:04 +0100, Jan Beulich wrote: > > This does scanning of PCI ROMS, which is unlikely to do anything > > useful on ARM platforms. > > Why not? Obviously if the ROMs contain x86 code, they're useless, > but in order to, say, do remote boot I suppose you need option > ROMs (with ARM code) on ARM too. Doesn't that all happen at the UEFI layer, long before Xen gets involved, even on x86? Does Xen itself do network boot/loading or does it call some UEFI layer? > > I also have no way to test this on ARM. > > I can try to pull this back in, but I may run into dependency issues > > such as those with VGA, where I did not > > want to pull in otherwise unused (and likely unusable on ARM) > > drivers/subsystems in order to keep a little more > > code in the common EFI boot path. > > The base line should be too keep everything here that is potentially > usable on more than one arch (without limiting our thinking to ARM > and x86). EFI's protocol based approach abstracts this quite nicely > - if something isn't available, you simply won't find th respective > protocol. Irrespective of the above this seems like a sensible approach. Ian.