From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shannon Zhao Subject: Re: efi_enabled(EFI_PARAVIRT) use Date: Sun, 1 May 2016 11:24:18 +0800 Message-ID: <572576E2.7060508@linaro.org> References: <20160429142020.4499e185@canb.auug.org.au> <20160429063936.GA28320@gmail.com> <20160429143931.GG2839@codeblueprint.co.uk> <5724BDD2.5020600@linaro.org> <20160430204420.GM2839@codeblueprint.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <20160430204420.GM2839@codeblueprint.co.uk> Sender: linux-next-owner@vger.kernel.org To: Matt Fleming Cc: Ard Biesheuvel , Stefano Stabellini , Ingo Molnar , Stephen Rothwell , "Luis R. Rodriguez" , Jeremy Fitzhardinge , Konrad Rzeszutek Wilk , Stefano Stabellini , Xen Devel , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Peter Zijlstra , linux-next@vger.kernel.org, "linux-kernel@vger.kernel.org" , Borislav Petkov List-Id: xen-devel@lists.xenproject.org On 2016=E5=B9=B405=E6=9C=8801=E6=97=A5 04:44, Matt Fleming wrote: >> While I still have a question, in this patch we use >> > efi_enabled(EFI_PARAVIRT) as a condition to make fdt_find_uefi_par= ams() >> > and efi_get_fdt_params() execute different ways. So it needs to fi= nd a >> > new condition for that if we need to get rid of EFI_PARAVIRT. One = I >> > think is that xen_initial_domain() check. Is that fine? > Hmm... why do you actually need to check whether you're running on a > PV machine in fdt_find_uefi_params()? Because the UEFI params for Dom0 are located under /hypervisor/uefi nod= e instead of /chosen. So it needs to check whether it's a Dom0 then searc= h and parse different node with different params arrays. > Can't you infer that from the DT > params you discover? >=20 > I could understand maybe only accepting the "xen,uefi-system-table" > property if IS_ENABLED(CONFIG_XEN) but surely you don't also need to > filter based on whether you're booting a PV kernel? >=20 > Let me put it this way: when would you see "xen,uefi-system-table" an= d > *not* be booting a PV kernel? So it still needs add another check to firstly parse the fdt to see if there is "xen,uefi-system-table" under /hypervisor/uefi node, right? I think it's a bit redundant compared with xen_initial_domain(). Thanks, --=20 Shannon