Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp425604rwb; Wed, 7 Dec 2022 20:47:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf6hMsFRjpstfJEOIm//s4kDfTx6cHv7+bTd2NN7NoRiOXZSEFT2+nKRVlyBVTVTMDODcsoJ X-Received: by 2002:a62:820b:0:b0:576:a748:8fa3 with SMTP id w11-20020a62820b000000b00576a7488fa3mr21271236pfd.37.1670474864105; Wed, 07 Dec 2022 20:47:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670474864; cv=none; d=google.com; s=arc-20160816; b=SmppB+iDslTjLRVV+gbbCwQ9WfdtOwaoZZZ67+KyLINngziCQNZGBhA26ETc2lSE1w e5VaZL8HdKYdxV6Ek/UJ1jovvNa93gSTgUAqOefFdhUnDNR8j9U/aiVxRK6WeRHwoQYf mKtqo5R8u6Cfrrfubhk1aZsIV0TAjlixKy2QrSmtm5usk1JnFXeE0vuH7Q5W/K7nEzgr N19UcrnEjwd0Iw1lQ/9t18+S/EKxiC8VYaqUBOpv6vylwq7AEjlllrA/YVPRrjxn7wqN wOTYuYlwD8/cqFoPCPsPkFfMpY+LEyk3ugujDLTq/Pf0iPrKiY6mXMws5hURYX5XF9Gr xiRQ== 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=jHrhx6+79Jl3ft6O4UZcMqaubIrHp9gGZE3MaJ/Gw6g=; b=UeZzJAtU1ChumfP4vAQjNphp0Vz/CKOlC9O+8a+WeXZnPMsqwdxLHNNM7qdBuwAYsb i3AotHC2AIJpiRyR9GsnIa7PjwffQbFwRQN3ldHPvE3aIBUFIWBABkn81kDKQR1K3KyR nYVcLeIMjE25JtMnliKxnxeTb4gfSPHmf/aqiZd9+CwFUq+hh5ssacTsT4QjNvZHaSrc ueOf8MAbRqRlu0FxrbBfQqaNGggnlvT7hhdrFSduwLkYhArpxwU8a2USH56q8T2SiVRc vbTFLz2F1lNtZ09l2wDRAp8muT6G436u7YBwEq4TAC4BedITAG4KcuEiGxyPUGi5FuzD Fb6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iQVhnxG8; 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 w2-20020a17090a380200b00212deed484esi3403563pjb.132.2022.12.07.20.47.34; Wed, 07 Dec 2022 20:47:44 -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=iQVhnxG8; 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 S229751AbiLHEEc (ORCPT + 74 others); Wed, 7 Dec 2022 23:04:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbiLHEEa (ORCPT ); Wed, 7 Dec 2022 23:04:30 -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 C13632CC90 for ; Wed, 7 Dec 2022 20:03:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1670472212; 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=jHrhx6+79Jl3ft6O4UZcMqaubIrHp9gGZE3MaJ/Gw6g=; b=iQVhnxG8oCKjkFlDnJwZPsDcDDnjDHzYZsgmc4WwPYYmWOYULZD08W+Tmzq2qa1HCHP20l BQzzUsUrtMJ8EBakotS8+KKSqtqrN82YmbI51k6TARN41AfR5m90XAOBf0nlpBk9Bdsc77 BN4JMkoZvGtVDPeEZ0VRWxOOGXL9DOM= 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-19-ccbyXt8iMgWzL3wDrvVn1Q-1; Wed, 07 Dec 2022 23:03:25 -0500 X-MC-Unique: ccbyXt8iMgWzL3wDrvVn1Q-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B381181D9F2; Thu, 8 Dec 2022 04:03:24 +0000 (UTC) Received: from localhost (ovpn-13-206.pek2.redhat.com [10.72.13.206]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5D62A2027061; Thu, 8 Dec 2022 04:03:23 +0000 (UTC) Date: Thu, 8 Dec 2022 12:03:19 +0800 From: Baoquan He To: Borislav Petkov Cc: Eric DeVolder , 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, 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 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 12/07/22 at 04:56pm, Borislav Petkov wrote: > On Wed, Dec 07, 2022 at 09:57:48PM +0800, Baoquan He wrote: > > I thought we usually need to introduce the kernel config option, then > > add code related to it, so that is a wrong idea. > > It depends: sometimes it is prudent to add the code behind an ifdeffery > first but have it not being buildable so that you don't have to deal > with build breakages but rather concentrate on adding the facilities > first. > > And you add the Kconfig item only in the end where everything is in > place and it should build properly then. I see. Now it's pretty clear to us. Thanks a lot. > > > It would be helpful to tell this somewhere in document. > > Feel free. I mean, it is pretty obvious but if it helps, it wouldn't hurt. OK, at least people tracking this thread got this now.