Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1185568yba; Tue, 2 Apr 2019 04:12:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0Q2tcwFKk05LichUNbt28mXKnl6AfOsmj4IgbNN42YYh4uX/fk4C3WvgmJ81LmdrASoee X-Received: by 2002:a63:cf0d:: with SMTP id j13mr31673897pgg.34.1554203545112; Tue, 02 Apr 2019 04:12:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554203545; cv=none; d=google.com; s=arc-20160816; b=VWj0gLgBYpw0DuZiaUXQ2O07nG8tJCJETlthOuBulSPFij69x+24bPEejx1dLxk20F zRAX/Tstidugx/DS1Ir7ZoHmX4jl0Nuta09X/Zaj1sLxrTWWdm8Ydf7KQkqsy2chlKy+ ig131iTZsi4wqgdUZ0sLq1uQFxoKMguCBLHCdMmqVJ6+AoO8i5fTQDRAtmB7pea/IBrl 69gtTVt4ZTRdwhZ7ex0TW98M6vaYpYs0UvmjLs0V3s6wGFxpbSPvCtfgylOF7pTOLhJu wTC9+A0wEQlgveRbD/0P0pZw09BKorW2WenCAGmTNx87AYhoeeAnFneGxUdOrjh6BStC hxhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=jHEeUGK1deXhQMfKOzQda437xUu9dYMduWYo0rMU/9c=; b=cVJwcQEhIOAaQYqhXJg/nwtCVtPB0o4fshMPzHPqxQdVSH5YH38wRLlnQrPhobgLQ3 zk/nnI5HGTOx3MYwejSLq0xsL/KcCNJ8v0g9iyt2nmbX8c2uJtmWi/a11J7FhBGww9/r 0PV9FeNt5oZNZrmonkY74ucSya0sgQu0ooFiSSY9mz9H1DNAstMo12lenqQ+Hys4tQOn mrUMXnbxL1Fa2kONRtMcaO9InlJvOgSz6HWz+oDCs4T7tqqnpC3WXyQjPsbpvMxz7tKY 4UPjwTac3Kn6bQCeI/TqXtQKgs8IEEeMBN3S1jSQGeQXZXFrDZRFVDRBbbVIIqMRhvmZ 1XTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2si10777136pgq.2.2019.04.02.04.12.09; Tue, 02 Apr 2019 04:12:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729852AbfDBKHh (ORCPT + 99 others); Tue, 2 Apr 2019 06:07:37 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:63022 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729765AbfDBKHh (ORCPT ); Tue, 2 Apr 2019 06:07:37 -0400 X-IronPort-AV: E=Sophos;i="5.60,300,1549900800"; d="scan'208";a="58293286" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 02 Apr 2019 18:07:35 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (unknown [10.167.33.80]) by cn.fujitsu.com (Postfix) with ESMTP id CD3604CD7914; Tue, 2 Apr 2019 18:07:35 +0800 (CST) Received: from localhost.localdomain (10.167.225.56) by G08CNEXCHPEKD01.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 2 Apr 2019 18:07:39 +0800 Date: Tue, 2 Apr 2019 19:06:36 +0800 From: Chao Fan To: Junichi Nomura CC: Borislav Petkov , "bhe@redhat.com" , Dave Young , "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 for searching RSDP on kexec-ed kernel Message-ID: <20190402110635.GC1555@localhost.localdomain> References: <20190325231000.GA9184@jeru.linux.bs1.fc.nec.co.jp> <20190326135714.GG1867@zn.tnic> <20190327014852.GA3659@MiWiFi-R3L-srv> <73322ba9-e436-68db-7863-afd31607d969@ce.jp.nec.com> <20190328064343.GA1877@MiWiFi-R3L-srv> <20190328074337.GA9470@jeru.linux.bs1.fc.nec.co.jp> <20190328155256.GP22720@zn.tnic> <20190401000837.GA5170@jeru.linux.bs1.fc.nec.co.jp> <20190402094149.GB1555@localhost.localdomain> <20190402095350.GA20733@jeru.linux.bs1.fc.nec.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20190402095350.GA20733@jeru.linux.bs1.fc.nec.co.jp> User-Agent: Mutt/1.11.3 (2019-02-01) X-Originating-IP: [10.167.225.56] X-yoursite-MailScanner-ID: CD3604CD7914.ABBAE X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: fanc.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 02, 2019 at 09:53:51AM +0000, Junichi Nomura wrote: >On Tue, Apr 02, 2019 at 05:41:49PM +0800, Chao Fan wrote: >> [ 77.989030] kexec_core: Starting new kernel >> early console in extract_kernel >> input_data: 0x000000017f6033b1 >> input_len: 0x00000000008412d4 >> output: 0x000000017e000000 >> output_len: 0x0000000001e15844 >> kernel_total_size: 0x0000000001e2c000 >> trampoline_32bit: 0x000000000009d000 >> booted via startup_64() >> >> >> Physical KASLR disabled: no suitable memory region! >> ------ >> >> I am not sure whether I have done the right test. >> This guest is booted from EFI. Here we can see the kexeced kernel >> has completed the compressed boot stage. So I think your PATCH works. > >Thanks for testing. If your test bed doesn't boot even with the patch, >you could check what was found as RSDP with a debug patch like below. Oh no, it booted. I just put the compressed stag log. Thanks, Chao Fan > >diff --git a/arch/x86/boot/compressed/misc.c b/arch/x86/boot/compressed/misc.c >--- a/arch/x86/boot/compressed/misc.c >+++ b/arch/x86/boot/compressed/misc.c >@@ -379,6 +379,7 @@ asmlinkage __visible void *extract_kernel(void *rmode, memptr heap, > debug_putaddr(output); > debug_putaddr(output_len); > debug_putaddr(kernel_total_size); >+ debug_putaddr(boot_params->acpi_rsdp_addr); > > #ifdef CONFIG_X86_64 > /* Report address of 32-bit trampoline */ > >