From: Ian Campbell Subject: Re: [PATCH RFC 00/19] arm64 EFI stub Date: Wed, 2 Jul 2014 13:31:05 +0100 Message-ID: <1404304265.5562.55.camel@kazak.uk.xensource.com> References: <1403918735-30027-1-git-send-email-roy.franz@linaro.org> <1404301964.5562.32.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1404301964.5562.32.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: Roy Franz Cc: keir@xen.org, tim@xen.org, xen-devel@lists.xen.org, stefano.stabellini@citrix.com, jbeulich@suse.com, linaro-uefi@lists.linaro.org, fu.wei@linaro.org List-Id: xen-devel@lists.xenproject.org On Wed, 2014-07-02 at 12:52 +0100, Ian Campbell wrote: > On Sat, 2014-06-28 at 02:25 +0100, Roy Franz wrote: > > 2) Is it valid to start XEN with a device tree that only contains > > multi-boot and EFI info? (As would be the case if the stub doesn't get a > > device tree as input.) > > This would be the case when running on an ACPI system I guess? In which > case everything which would be in the DT would instead be in the ACPI > tables, which is something Naresh is working on I think. > > > Currently this isn't supported, some libfdt > > functions are missing, so I'm checking if this is desired before I add > > that. > > Unless this==booting with ACPI I'm not sure what it is and if its ACPI > I'm not sure what needs to be done in the stub, could you explain > please? > > (I have a feeling I'm missing something obvious) Ah, I think this is from the final patch: > + if ( fdtfile->ptr ) > + fdt_size = fdt_totalsize(fdtfile->ptr); > + else > + { > + /* RFRANZ_TODO - missing fdt_create_empty_tree() in libfdt. */ > + return NULL; > + } I don't think we currently support booting with no FDT at all, and even in the ACPI world we would get one. So I think this would be an error. IOW no need to worry about it.