Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp171877imu; Mon, 19 Nov 2018 20:08:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/XcpZWSnd8+zottTSiiebY7qN0YQwBpRGRZWestVVu9NUBpnky50eTY3zmZfEfVQPIHISDY X-Received: by 2002:a17:902:2a66:: with SMTP id i93mr527213plb.113.1542686907434; Mon, 19 Nov 2018 20:08:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542686907; cv=none; d=google.com; s=arc-20160816; b=oMdonQY47gmgtO4qQQ42ObiEpa6myJ8gO1qR5oCRFUV4T7GHEGwEDwHhCPelpMZkp4 PENyPku3Ybefk+aAWerxenl+kVlpDdMZUe97ib5lE4bwQJkks6vP05ovBIjo52NRY57p 97f/TH1xxQSg5CXFBm+zDDK4Ed9hLnMlw0iy+gNaXmZjC6IYklDLCSm1GjmUqM68prL/ RQ6o+EK6Lo/vgQv89m9bY+UHhJubcL0/db1lyr4EzkhRoWDkKtfXWERwnyX/RUWE2eM/ 9YrTHtv0opnLUMKgKVRIT+8cMyHhc5Qrnptwit1f96iu8ujQiwpXUceg0pcWQUHmQe9M eYvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=tuwcu1D938NogKJ8DlbwWouExYeSuEreVk5rCdSInj0=; b=KbDvEReJaXokLn+iAvaTSltQ43h3dE7VEkDMyrWjpL4mWuEptORXiIJ1VnOHGaknNZ RRtMwIxXiTBFSaheD4J0dltzJXHRwKooYRT8FEJ1SUNbemBQ1fwXi6GoZS5A5IUzu+S5 LQNa/iJq/ofKCRQyAzOeClNVqSaKL+Ga/Etmf1uY2xz60f7oApVO42WaJyC0lHmR718Y OECoR+DUXFm1BP9EwhjF/3pyb7GLoG6wkjHBF4JLg7yoNNwRqhWYvJXjgq9W4curNKFf k236HidPivxt1HMhsVCvWiRmwXW8JrXxJtnxsmbZiqtABcLsZ5BinBLMJMljsebxSoFV hsfg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e136si33159495pfh.17.2018.11.19.20.08.11; Mon, 19 Nov 2018 20:08:27 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730882AbeKTOeh (ORCPT + 99 others); Tue, 20 Nov 2018 09:34:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49482 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730180AbeKTOeh (ORCPT ); Tue, 20 Nov 2018 09:34:37 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 66D8A3082141; Tue, 20 Nov 2018 04:07:33 +0000 (UTC) Received: from localhost.localdomain (ovpn-12-61.pek2.redhat.com [10.72.12.61]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3BAFE5D75E; Tue, 20 Nov 2018 04:07:22 +0000 (UTC) Subject: Re: [PATCH 1/2 v6] x86/kexec_file: add e820 entry in case e820 type string matches to io resource name To: Borislav Petkov Cc: Bjorn Helgaas , linux-kernel@vger.kernel.org, kexec@lists.infradead.org, x86@kernel.org, tglx@linutronix.de, mingo@redhat.com, akpm@linux-foundation.org, dyoung@redhat.com, bhe@redhat.com References: <20181114072926.13312-1-lijiang@redhat.com> <20181114072926.13312-2-lijiang@redhat.com> <20181114112600.GD13926@zn.tnic> <9eb61523-7a08-24c4-ac15-050537bd9203@redhat.com> <20181115103959.GB26448@zn.tnic> <20181118115251.GB19380@zn.tnic> From: lijiang Message-ID: Date: Tue, 20 Nov 2018 12:07:18 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181118115251.GB19380@zn.tnic> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Tue, 20 Nov 2018 04:07:33 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2018年11月18日 19:52, Borislav Petkov 写道: > On Fri, Nov 16, 2018 at 11:25:55AM +0800, lijiang wrote: >> For the pci mmconfig issue, it should be good enough that the e820 reserved region >> [mem 0x0000000078000000-0x000000008fffffff] is only passed to the second kernel, but >> the pci mmconfig region is not the same in another machine. > > Yes. And now the question is, *which* reserved regions need to be mapped > for the second kernel to function properly? How do we figure that out? > >> A simple case, hotplug a pci network card and use the ssh/nfs to dump the vmcore. >> If the pci mmconfig region is not reserved in kdump kernel, the pci hotplug device >> could not be recognized. So the pci network card won't work. > > Yes that's a good example; put *that* example in your commit message. > >> Here, there is an example about SME kdump. Maybe it can help to better understand. > > You keep pasting that and I've read it already. And you keep repeating > that the reserved regions need to be mapped in the second kernel and I'm > asking, how do we determine *which* regions should we pass to the second > kernel? > > If we should pass *all* reserved regions, why? > > IOW, I'm looking for the *why* first. > > Thx. > I guess you have gotten the answer what you want from Dave's reply. Thank you, Boris. Also thanks for Dave's explanation in detail. Regards, Lianbo