Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp783512rdb; Mon, 29 Jan 2024 19:58:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IFVj+vL0QDuH9uPOoJEicvGEYmG3V/35DI1UNB2zenTiX9RCT7dBL6GZDIs7ooBaYGfygzu X-Received: by 2002:a05:6a20:9f87:b0:19c:53e4:e67f with SMTP id mm7-20020a056a209f8700b0019c53e4e67fmr5469663pzb.15.1706587111346; Mon, 29 Jan 2024 19:58:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706587111; cv=pass; d=google.com; s=arc-20160816; b=fnAQ0hORGtGIcJtlhjRQoFU59PBgfiS/SZ7w/2KijpyzXQTLrxQLanAicaXo984OYx D1PldpfAQqS3fa25vn0r/uL5mp8qHsIVUizbqBpeRjNBcHSnyx1qCuHy/+7u5i+YVEb1 kNTj9ajJE4v1fHMFsbpX7OmDSwzX7/RHtmlDyA7xNrn8E/ujsFvim3zx3Lgn0134EkfC va6S1NQXdHZKaHfambrb4zWAPrHRC9cvVuje2XGjHKz2ZvwxLCc4G2JcFCTpSNAOr8CL gvMtoAzA2QAIarHlmKKvMdIqSvWg0prWXNEmpUDygd7FUwEYlsZkD8zMAzyRapPv4MVe ID+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=u8RDoe2yCdgr10/YRzYCMiM1TZtxb1vkYMgwLoeeQrg=; fh=Ov7ylMrOvJkO3WN2agzdgWSNYcvbrsDSsVnpThGuARc=; b=Dy2Te47Jp4Ht6HI6OLLwrauizqwSplY1KiWBA8jhtEv6mOTiJfQEfpIDsGNrmFp13A zEEgTEm019KKeysQdUqxjfwx6t7ew5bL2mgArOjNarnY0h4rcag1qWGqH+5LyaO2VSQs WQW+ll2oJQzX5b56NeheczPe7XR49/dHOOGgxHnVwB8AWPCtbsCtJ8qNq56aR1TN4pkl FR0evq/dQ9KuKU+P9jBQdyODqgwZpFyo8r5gqPSSZARbiigx8K9wtCFwO6ZMUU2oxtNV XyT0xRmAdeIym8wjRcfzhQ7aTXqtMZQn/i7LJrtsWORZklRMBlNgJ1UBag0MxFBCNeOo 9rpA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OCEjmiRY; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-43922-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43922-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h13-20020a17090acf0d00b0029058af1c92si8856507pju.166.2024.01.29.19.58.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 19:58:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43922-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OCEjmiRY; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-43922-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43922-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 80EFEB23796 for ; Tue, 30 Jan 2024 03:58:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2CFAA376FC; Tue, 30 Jan 2024 03:58:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="OCEjmiRY" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF8D9374F8 for ; Tue, 30 Jan 2024 03:58:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706587100; cv=none; b=bc8wRBchulSelDJmEjFsS+TtYuafsNi8JOG+1zSPV3NqNsMs9j3nGgNM1lnYUSykH3q/9H0Mn3F4Qwvb4dhcXPKGH6ulZORkqarhf+7g5Egp38ohphFMqO/nWfG6G19xT2vItgkCDD6b+A9FhDHLoj1YYr/hriUmOO3d35++gas= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706587100; c=relaxed/simple; bh=hY2Kcvcx/I55SmbSpelpIm3429x8ezwdUMiRnAOWyL8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZSVkASenhfjMnVjamMLqxG1B/+eEnpLGZyTPEidqDmIfrRHdMjzT2nS4SKA6aXB1ASANdtlN8N44g8Vsre5ugjzf9M//FsQFnt2idnZeITEqZqpYs3yX0mQl6bg5tcwkZBmrvU6OBKXpWGkLzmpedgg+JtnplxK9UBSQF/sYXd0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=OCEjmiRY; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706587097; 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=u8RDoe2yCdgr10/YRzYCMiM1TZtxb1vkYMgwLoeeQrg=; b=OCEjmiRYD3cxwHpv6u3Qfsgvqh/m5qFSLtE6Thc6U2CwabqCeWZvuSwCE3VjyKrQz34pGt kdSjtBuJ0pidin83ToHDYluggRrTl3EqKZ6BKY9waut7GQiH32efV3E63tDWdTp4eMMbxc sREFKvpcCNG9w6unTGwkNQ4MHqgT09Y= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-141-blDvJ29cOj2GDaPpPG2lBA-1; Mon, 29 Jan 2024 22:58:13 -0500 X-MC-Unique: blDvJ29cOj2GDaPpPG2lBA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6AF1983B82B; Tue, 30 Jan 2024 03:58:12 +0000 (UTC) Received: from localhost (unknown [10.72.116.15]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A8BAAC0FDCA; Tue, 30 Jan 2024 03:58:11 +0000 (UTC) Date: Tue, 30 Jan 2024 11:58:08 +0800 From: Baoquan He To: Michael Kelley Cc: "kexec@lists.infradead.org" , "akpm@linux-foundation.org" , "linux-kernel@vger.kernel.org" , "x86@kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-s390@vger.kernel.org" , "nathan@kernel.org" Subject: Re: [PATCH linux-next 1/3] x86, crash: don't nest CONFIG_CRASH_DUMP ifdef inside CONFIG_KEXEC_CODE ifdef scope Message-ID: References: <20240129135033.157195-1-bhe@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 On 01/30/24 at 01:39am, Michael Kelley wrote: > From: Baoquan He > > > > On 01/29/24 at 06:27pm, Michael Kelley wrote: > > > From: Baoquan He Sent: Monday, January 29, 2024 > > 5:51 AM > > > > > > > > Michael pointed out that the #ifdef CONFIG_CRASH_DUMP is nested inside > > > > arch/x86/xen/enlighten_hvm.c. > > > > > > Did some words get left out in the above sentence? It mentions the Xen > > > case, but not the Hyper-V case. I'm not sure what you intended. > > > > Thanks a lot for your careful reviewing. > > > > Yeah, I tried to list all affected file names, seems my vim editor threw > > away some words. And I forgot mentioning the change in reboot.c. > > > > I adjusted log as below according to your comments, do you think it's OK > > now? > > Yes -- looks like everything is included and clear up my confusion. But > I still have two small nits per below. :-) Right, I will grabbed them into v2. Thanks again. > > > > > === > > Michael pointed out that the #ifdef CONFIG_CRASH_DUMP is nested inside > > CONFIG_KEXEC_CODE ifdef scope in some XEN, HyperV codes. > > s/Hyper-V/HyperV/ > > > > > Although the nesting works well too since CONFIG_CRASH_DUMP has > > dependency on CONFIG_KEXEC_CORE, it may cause confusion because there > > are places where it's not nested, and people may think it needs be nested > > s/needs to be/needs be/ > > > even though it doesn't have to. > > > > Fix that by moving CONFIG_CRASH_DUMP ifdeffery of codes out of > > CONFIG_KEXEC_CODE ifdeffery scope. > > > > And also put function machine_crash_shutdown() definition inside > > CONFIG_CRASH_DUMP ifdef scope instead of CONFIG_KEXEC_CORE ifdef. > > > > And also fix a building error Nathan reported as below by replacing > > CONFIG_KEXEC_CORE ifdef with CONFIG_VMCORE_INFO ifdef. > > ...... > > === > > > > Thanks > > Baoquan >