From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752111AbcD3Uo0 (ORCPT ); Sat, 30 Apr 2016 16:44:26 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:38183 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750775AbcD3UoY (ORCPT ); Sat, 30 Apr 2016 16:44:24 -0400 Date: Sat, 30 Apr 2016 21:44:20 +0100 From: Matt Fleming 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 Subject: Re: efi_enabled(EFI_PARAVIRT) use 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 Content-Disposition: inline In-Reply-To: <5724BDD2.5020600@linaro.org> User-Agent: Mutt/1.5.24+41 (02bc14ed1569) (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.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?