Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp83445rwb; Mon, 28 Nov 2022 17:21:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf6v3JXYOXgHNydH0vz+VSpSmfocLbhLyeVFwzCYptpbgamOlztX58YXWD935MBEgttxJgtW X-Received: by 2002:aa7:9546:0:b0:562:5026:b136 with SMTP id w6-20020aa79546000000b005625026b136mr36554421pfq.84.1669684917115; Mon, 28 Nov 2022 17:21:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669684917; cv=none; d=google.com; s=arc-20160816; b=QQlYNzgZBM7heBRij+M90CWqEY3FnpE8r6CtL98ZUklIX4i3Ac9vcch6Icpb45KgQm jqH9v0bA+UICr/TRS+WO2ft+O0JE2cd4AQ8Qe+7fyKkdqU+RcU045PZ0Y5LO83TH0DwU vyHYhJR+yAMndNqztdt2zdu3Ac/qSegVYI8s/Mr+w0fq3Zhu1JQ9RYCl8zYldTfByJfK hf4F4WwI4RlML4nGumw6OmTFClDeY+YXJ7yMetNWjagEf2QJIlg5Bpt1204I7zmctUG9 DcUv2rOUsdMwH5z/vAUvQYDKytSmlIcwaMP9Lk+38jx6shYcTBi82ED7uF6W7cICCUJe rNmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+aFl0sgOrMydmqjUk07fy4RrxHvoSGQ4dmDc5GOKMr4=; b=tPIEbpKusJiCJcJPmb5BIYUMf5gCQHglHMzhEFJQkCJA95s8HorZwn4eVnxAotVF2m epVzkWvchsatgdcjGXbQAdrvebORyXRU+o3RQ5Msov1vQTghcD/0K2XYnOmjb5sEbNZJ uwhkIauK0GSfXsQZ66A8xpw6Gsono60onUD6N1dJcWCx8D1LKXwhx156culVNYj+MSG1 C7fD5egDAH7XBCSFxSEAGVQan/30SYTmDC2gHSKs2LS/SLLzpSib4xAPlReVmE3mAt8w 9BCfC2egMpioCu4Hz2VNlADZnwu9l1Fz5y5A3UvVxUVp2fJROvwmtYAq+ZvKjJXTnXhU hyHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HdX0EVWr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j33-20020a632321000000b00477e283d9b1si10448703pgj.430.2022.11.28.17.21.46; Mon, 28 Nov 2022 17:21:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HdX0EVWr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234911AbiK2Ao3 (ORCPT + 83 others); Mon, 28 Nov 2022 19:44:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234895AbiK2AoU (ORCPT ); Mon, 28 Nov 2022 19:44:20 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7A2510B79 for ; Mon, 28 Nov 2022 16:43:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669682596; 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: in-reply-to:in-reply-to:references:references; bh=+aFl0sgOrMydmqjUk07fy4RrxHvoSGQ4dmDc5GOKMr4=; b=HdX0EVWrgJccob2uSxrWzs2ufMtR6FEGnYzb3NI+COxALZoQke1aKYh96T0nPyVISeg/FW cyGtguOkQd0ajzp5X7cDRH4/vXqbj9DQKmqiMEPFEpktYeRRmel2mex6ybF1OH+Uq2hJmu EeGkzMocKR5WHMvR7WVLmT9oVyZ01sw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-567-68pV0VV2PL6qJaYl8zXnxA-1; Mon, 28 Nov 2022 19:43:13 -0500 X-MC-Unique: 68pV0VV2PL6qJaYl8zXnxA-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 19623833AEC; Tue, 29 Nov 2022 00:43:12 +0000 (UTC) Received: from localhost (ovpn-12-142.pek2.redhat.com [10.72.12.142]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E07274B3FC8; Tue, 29 Nov 2022 00:43:10 +0000 (UTC) Date: Tue, 29 Nov 2022 08:43:07 +0800 From: Baoquan He To: Eric DeVolder Cc: linux-kernel@vger.kernel.org, x86@kernel.org, kexec@lists.infradead.org, ebiederm@xmission.com, dyoung@redhat.com, vgoyal@redhat.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, nramas@linux.microsoft.com, thomas.lendacky@amd.com, robh@kernel.org, efault@gmx.de, rppt@kernel.org, david@redhat.com, sourabhjain@linux.ibm.com, konrad.wilk@oracle.com, boris.ostrovsky@oracle.com Subject: Re: [PATCH v14 3/7] crash: add generic infrastructure for crash hotplug support Message-ID: References: <20221116214643.6384-1-eric.devolder@oracle.com> <20221116214643.6384-4-eric.devolder@oracle.com> <248486ff-5f9d-bffd-ab6e-131c54f31bd8@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <248486ff-5f9d-bffd-ab6e-131c54f31bd8@oracle.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/28/22 at 09:46am, Eric DeVolder wrote: > > > On 11/24/22 21:26, Baoquan He wrote: > > On 11/16/22 at 04:46pm, Eric DeVolder wrote: > > ...... > > > diff --git a/include/linux/kexec.h b/include/linux/kexec.h > > > index ebf46c3b8f8b..b4dbc21f9081 100644 > > > --- a/include/linux/kexec.h > > > +++ b/include/linux/kexec.h > > > @@ -32,6 +32,7 @@ extern note_buf_t __percpu *crash_notes; > > > #include > > > #include > > > #include > > > +#include > > > #include > > > /* Verify architecture specific macros are defined */ > > > @@ -374,6 +375,13 @@ struct kimage { > > > struct purgatory_info purgatory_info; > > > #endif > > > +#ifdef CONFIG_CRASH_HOTPLUG > > > > This kernel config CRASH_HOTPLUG is added in patch 7, but we have used > > it in the previous patch, not sure if this is acceptable. > > > I wasn't sure what to do here either. Patch 7 is the x86 arch-specific > support patch, and CRASH_HOTPLUG is introduced in arch/x86/Kconfig. I did > look at introducing CRASH_HOTPLUG as a generic/non-arch-specific option, but > no location seemed appropriate given HOTPLUG_CPU is arch-specific and > MEMORY_HOTPLUG is in mm/Kconfig. arch/Kconfig? Because CRASH_CORE/KEXEC_CORE are defined there. > > This doesn't break bisect, but as you point out, not sure if the location in patch 7 is acceptable. > I'm not really sure how to resolve the question. Hmm, since it's bisect-able, seems doesn't break rule. I could be too sensitive. Do we have a precendent like this, to strengthen our confidence? If no concern from other people, it's also fine to me.