From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1757C43381 for ; Tue, 26 Mar 2019 13:57:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B5B4920857 for ; Tue, 26 Mar 2019 13:57:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alien8.de header.i=@alien8.de header.b="sccCvHZT" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731760AbfCZN5O (ORCPT ); Tue, 26 Mar 2019 09:57:14 -0400 Received: from mail.skyhub.de ([5.9.137.197]:48838 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726140AbfCZN5N (ORCPT ); Tue, 26 Mar 2019 09:57:13 -0400 Received: from zn.tnic (p200300EC2F098000329C23FFFEA6A903.dip0.t-ipconnect.de [IPv6:2003:ec:2f09:8000:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 3903D1EC02D1; Tue, 26 Mar 2019 14:57:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1553608631; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=VBmvhlNt5T5tLICXaCt3yoPsTBW8T+5xJTvH2vUPLi4=; b=sccCvHZTT+X6zA6GWy5vc0DSNYdViOh6q6QQODpPK25G2eSDBqHWpe/SX1TX0AJ95mPJe6 372kqEd/QlRUi/oeNImZP28Sc7BH2brFz/gYceVrPOgWWfDbS4EN+i8+sQpY8qFijBn/sM ox+F806wiMjtziaxj1jcSLZHIv5I6zk= Date: Tue, 26 Mar 2019 14:57:14 +0100 From: Borislav Petkov To: Junichi Nomura Cc: Dave Young , "fanc.fnst@cn.fujitsu.com" , "bhe@redhat.com" , "kasong@redhat.com" , "x86@kernel.org" , "kexec@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2] x86/boot: Use EFI setup data if provided Message-ID: <20190326135714.GG1867@zn.tnic> References: <20190325065921.GA11096@dhcp-128-65.nay.redhat.com> <20190325082720.GA20771@jeru.linux.bs1.fc.nec.co.jp> <51D9A7D1-49BF-4679-B102-0FC5AC300C9F@alien8.de> <20190325101509.GA13160@dhcp-128-65.nay.redhat.com> <701c8e69-e1d4-c653-1d87-1c41789d3d54@ce.jp.nec.com> <20190325120149.GI12016@zn.tnic> <20190325122302.GC13160@dhcp-128-65.nay.redhat.com> <20190325123229.GL12016@zn.tnic> <20190325231000.GA9184@jeru.linux.bs1.fc.nec.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190325231000.GA9184@jeru.linux.bs1.fc.nec.co.jp> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 25, 2019 at 11:10:01PM +0000, Junichi Nomura wrote: > efi_get_rsdp_addr() and kexec_get_rsdp_addr() could be implemented > like this (sorry about the pseudo code): This doesn't look like what I suggested: > So efi_get_rsdp_addr() needs to be refactored in such a way so that at > least the loop towards the end gets carved out into a separate function > - __efi_get_rsdp_addr() or so - which gets config_tables, nr_tables and > size as arguments and finds the RSDP address in the kexec-ed kernel. You need to carve out the loop at the end and make it into a separate __efi_get_rsdp_addr() function which gets the physical or the virtual address. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.