Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1128412yba; Tue, 2 Apr 2019 02:56:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCGLg/CH/qTPIX+QDeenDVonn8Bj5d/ousYZ0u+qwwLEtyv1BuOPtzeywIjcAu9dEELXb8 X-Received: by 2002:a62:3892:: with SMTP id f140mr61797567pfa.128.1554198974013; Tue, 02 Apr 2019 02:56:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554198974; cv=none; d=google.com; s=arc-20160816; b=FiCKxasGV3pvqn05NZJmnduy5TH3v2C/TpKE3uB/QVLA/MMQJwzZ2wBlDKS97wiBTZ +E5jmpLYkr4JE+kB+f+LOrhprLT+oIYdRcy7uHeOaEFpOBC2DWQ9C8cVqsrLeAluXjXc jTFhs3k0cnCDc9BvuGjwm5VQj8BVO37+xYevANhnaP0d+aH8+bm2zRV1iAbGCQlty6aH zBtzu7pvvixhQyq8RPRaUN4WS2/KSOp7Ry6O6HiruDgBBXGwQUXSEkpF8mK+EkEKl49N YF6S0kP89JxPzi7bhiQaK/O4tcyVkVysrxKZLVxPQu4ehhx5Npfi8viOezY9kFN0pxZm 8Ctg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from; bh=a9JEiohZt4Fc16Zh2ri45z1LxE81Uvbo4uzXcF+GxCA=; b=ngpLgxECV0zswGW6ulL1+p6ALyly0T8Vq+yvHDvEGv15vcRC2xdfFYrTem21U5kBms zDB1cgvICKYDJG84VFhrTGrgnPx9i3bilz0GpdJ2lCbWSTO7uScfffnzPA4E6onYEoro DjshUmJVamRZ9JF4pu8V+Y9t3E764+phU3A/TLEm7AO813odD0IO3jG4pt4A4SX1epaZ 1xveqylqIRM5VNfzKU5tKO5JB6sK17l7cP+h22xAifihY+T+h8BTjGeDlZgnq+ALW4D9 OW3R49ZG9s+HF7aPp6Wkhu9EgnFF/JdNVMkjbyqr4NBwv87cbdq5mCEQIFiTJXfsPcUx qWEQ== 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 g1si10588857pgq.227.2019.04.02.02.55.58; Tue, 02 Apr 2019 02:56:14 -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 S1729712AbfDBJyq convert rfc822-to-8bit (ORCPT + 99 others); Tue, 2 Apr 2019 05:54:46 -0400 Received: from tyo162.gate.nec.co.jp ([114.179.232.162]:44945 "EHLO tyo162.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727525AbfDBJyp (ORCPT ); Tue, 2 Apr 2019 05:54:45 -0400 Received: from mailgate02.nec.co.jp ([114.179.233.122]) by tyo162.gate.nec.co.jp (8.15.1/8.15.1) with ESMTPS id x329sLFR032474 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 2 Apr 2019 18:54:21 +0900 Received: from mailsv01.nec.co.jp (mailgate-v.nec.co.jp [10.204.236.94]) by mailgate02.nec.co.jp (8.15.1/8.15.1) with ESMTP id x329sLPQ006220; Tue, 2 Apr 2019 18:54:21 +0900 Received: from mail01b.kamome.nec.co.jp (mail01b.kamome.nec.co.jp [10.25.43.2]) by mailsv01.nec.co.jp (8.15.1/8.15.1) with ESMTP id x329r5wA015062; Tue, 2 Apr 2019 18:54:21 +0900 Received: from bpxc99gp.gisp.nec.co.jp ([10.38.151.138] [10.38.151.138]) by mail01b.kamome.nec.co.jp with ESMTP id BT-MMP-3907718; Tue, 2 Apr 2019 18:53:52 +0900 Received: from BPXM12GP.gisp.nec.co.jp ([10.38.151.204]) by BPXC10GP.gisp.nec.co.jp ([10.38.151.138]) with mapi id 14.03.0319.002; Tue, 2 Apr 2019 18:53:51 +0900 From: Junichi Nomura To: Chao Fan 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 Thread-Topic: [PATCH v2] x86/boot: Use efi_setup_data for searching RSDP on kexec-ed kernel Thread-Index: AQHU6TAPBuKir5aKdUeGLetpGKkWo6YoCrIA Date: Tue, 2 Apr 2019 09:53:51 +0000 Message-ID: <20190402095350.GA20733@jeru.linux.bs1.fc.nec.co.jp> References: <20190325123229.GL12016@zn.tnic> <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> In-Reply-To: <20190402094149.GB1555@localhost.localdomain> Accept-Language: en-US, ja-JP Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.34.125.85] Content-Type: text/plain; charset="iso-2022-jp" Content-ID: <86D499187EC21A4AA7AE510078A97754@gisp.nec.co.jp> Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-TM-AS-MML: disable 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 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. 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 */