From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Fleming Subject: Re: efi_enabled(EFI_PARAVIRT) use Date: Sat, 30 Apr 2016 21:44:20 +0100 Message-ID: <20160430204420.GM2839@codeblueprint.co.uk> References: <20160429142020.4499e185@canb.auug.org.au> <20160429063936.GA28320@gmail.com> <20160429143931.GG2839@codeblueprint.co.uk> <5724BDD2.5020600@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <5724BDD2.5020600@linaro.org> Sender: linux-next-owner@vger.kernel.org To: Shannon Zhao 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 Sat, 30 Apr, at 10:14:42PM, Shannon Zhao wrote: > Sure. How should I add this change? Rework this patch or add new one on > top of it? Rework this patch, please. > Yes, in this patch we could set EFI_RUNTIME_SERVICES flag in > fdt_find_hyper_node instead of setting EFI_PARAVIRT flag, and then bail > out early in arm_enable_runtime_services() as you said. Then call > xen_efi_runtime_setup() in xen_guest_init(). Sounds good. > While I still have a question, in this patch we use > efi_enabled(EFI_PARAVIRT) as a condition to make fdt_find_uefi_params() > and efi_get_fdt_params() execute different ways. So it needs to find 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()? Can't you infer that from the DT params you discover? 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? Let me put it this way: when would you see "xen,uefi-system-table" and *not* be booting a PV kernel?