From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755718AbcECJPn (ORCPT ); Tue, 3 May 2016 05:15:43 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:30438 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751419AbcECJPk (ORCPT ); Tue, 3 May 2016 05:15:40 -0400 Message-ID: <57286BD0.2000809@huawei.com> Date: Tue, 3 May 2016 17:13:52 +0800 From: Shannon Zhao User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Shannon Zhao , Ard Biesheuvel , Matt Fleming CC: Stephen Rothwell , Jeremy Fitzhardinge , Stefano Stabellini , "Peter Zijlstra" , Stefano Stabellini , "linux-kernel@vger.kernel.org" , "Luis R. Rodriguez" , Xen Devel , Borislav Petkov , , Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar Subject: Re: [Xen-devel] efi_enabled(EFI_PARAVIRT) use References: <20160429142020.4499e185@canb.auug.org.au> <20160429063936.GA28320@gmail.com> <20160429143931.GG2839@codeblueprint.co.uk> <5724BDD2.5020600@linaro.org> In-Reply-To: <5724BDD2.5020600@linaro.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.16.142] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020205.57286C34.0082,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 7588ec96499e4b0119c50887f9b92ceb Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2016/4/30 22:14, Shannon Zhao wrote: >> I already proposed when this patch was first under review to make the >> > arm_enable_runtime_services() function bail early without error if the >> > EFI_RUNTIME_SERVICES flag is already set, and the xen code could set >> > that bit as well when it installs its paravirtualized alternatives. I >> > don't remember exactly why that was shot down, though, but I think it >> > is the only reason this code introduces references to EFI_PARAVIRT in >> > the first place. >> > > 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(). Hi Ard, If it sets EFI_RUNTIME_SERVICES flag in fdt_find_hyper_node and in arm_enable_runtime_services() it checks whether it's a Dom0 through xen_init_domain() and the EFI_RUNTIME_SERVICES flag is set, then call xen_efi_runtime_setup(). Is it ok? Thanks, -- Shannon