Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp256112pxm; Tue, 22 Feb 2022 22:43:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlmLiOlIGm3TlO78Bih+/vOfAN+j3Mw4+YAr0029n6MvbKa1sSyjFleDoxzMQUw2kQG0JJ X-Received: by 2002:a17:90a:578f:b0:1b9:b03f:c33c with SMTP id g15-20020a17090a578f00b001b9b03fc33cmr7838166pji.114.1645598597317; Tue, 22 Feb 2022 22:43:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645598597; cv=none; d=google.com; s=arc-20160816; b=RCUpeM2/zVTNc8gsLPtVQsS31GI0LA9ycmpTs+IZ6Yz7i9EfKEnGrLuupslQak6aFZ rtc9JdKQvMj2ugzhjZPirKBlisl/aPaLcIjYzT+tqmFm9p6Svw/mvr/IGx+yhtAsnsMp fiiMfm70VwQfLLx7TGswWzSFDAG89TFBmdiNpngnLOnJ5z144oC4XpsH8mU5j6siyKh0 yCmb8EUJ6Pk85bYlnq/gaUsEcF0oExZouwK7DfGVxM0EEecD1pgff6zvNTysN5nH6KH0 oVuZCD5Qn10VUzagcIvS7aBm1RVZwA82XHX8R+jiN9sUDgAEspvEsiK2+0cuFNKpA/cd SwiQ== 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=q9U/EQUtsq8zq02Ou6EkIRfkqNfsRx54212UYgYxfY4=; b=ebA+H9Xs5zAJAswlW0qZo5Ct1f4Tj1N2Ppj1x23FJ5foKGzQ1EeZ/BylZa4Y/KzpSL qWKYjsMiVH+Vmi1K5p3qd5pQHYApqGSWs7cESe9LSFJqTmCFUpnyVKI3somt41EHNuqM H3Er8Oior2bWr7MwNmH3d8eK17rPPkcUapBMZC9rkwF0osUT6UhUgF9ctQL1sR51+GwG GTv0a69JrtXcHbVJauWl1wU1yRXvlJrtJTSIW1l+mg2hd6kyvAUbmVdmWryigvKlGit3 XECC1esTCNcyU4d4BYyaCqacLCZHErOUDafgBCUo1cU9UypJaHB+wglZh4izWMW4hD6I QM/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QyVSIrVI; 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 oo13si1703946pjb.149.2022.02.22.22.42.37; Tue, 22 Feb 2022 22:43:17 -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=QyVSIrVI; 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 S236588AbiBWDoB (ORCPT + 99 others); Tue, 22 Feb 2022 22:44:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231295AbiBWDn7 (ORCPT ); Tue, 22 Feb 2022 22:43:59 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 49EC4606D0 for ; Tue, 22 Feb 2022 19:43:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1645587812; 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=q9U/EQUtsq8zq02Ou6EkIRfkqNfsRx54212UYgYxfY4=; b=QyVSIrVI9XYouDT2/LbljM6BshSh770+0/u8gLb5HI7HiGa+IyiQHW+/eCSNYnMDJI/Yyt iOniSvQWMxlBno1qvagM8BKvk9ZFCXIomlJ5A+5medUavkn3aDgyoRnS/Vx1vfysbr9SK8 O1IsENJs2HR8F1OlpyWUvGMQpx5VcQM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-464-sGKCFAQOMX29HomZtDACMg-1; Tue, 22 Feb 2022 22:43:31 -0500 X-MC-Unique: sGKCFAQOMX29HomZtDACMg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 15D06180FD71; Wed, 23 Feb 2022 03:43:29 +0000 (UTC) Received: from localhost (ovpn-14-1.pek2.redhat.com [10.72.14.1]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5657AE717; Wed, 23 Feb 2022 03:43:08 +0000 (UTC) Date: Wed, 23 Feb 2022 11:43:05 +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, konrad.wilk@oracle.com, boris.ostrovsky@oracle.com Subject: Re: [PATCH v4 03/10] crash hp: definitions and prototype changes Message-ID: References: <20220209195706.51522-1-eric.devolder@oracle.com> <20220209195706.51522-4-eric.devolder@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220209195706.51522-4-eric.devolder@oracle.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 02/09/22 at 02:56pm, Eric DeVolder wrote: > This change adds members to struct kimage to facilitate crash > hotplug support. > > This change also defines crash hotplug events and associated > prototypes. > > Signed-off-by: Eric DeVolder > --- > include/linux/kexec.h | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/include/linux/kexec.h b/include/linux/kexec.h > index 0c994ae37729..13c238c2da48 100644 > --- a/include/linux/kexec.h > +++ b/include/linux/kexec.h > @@ -299,6 +299,13 @@ struct kimage { > > /* Information for loading purgatory */ > struct purgatory_info purgatory_info; > + > +#ifdef CONFIG_CRASH_HOTPLUG > + bool hotplug_event; > + int offlinecpu; > + bool elf_index_valid; > + int elf_index; > +#endif > #endif > > #ifdef CONFIG_IMA_KEXEC > @@ -315,6 +322,15 @@ struct kimage { > unsigned long elf_load_addr; > }; > > +#ifdef CONFIG_CRASH_HOTPLUG > +void arch_crash_hotplug_handler(struct kimage *image, > + unsigned int hp_action, unsigned long a, unsigned long b); Seems this patch can be merged with patch 6/10. I don't see prototype change in this patch. > +#define KEXEC_CRASH_HP_REMOVE_CPU 0 > +#define KEXEC_CRASH_HP_ADD_CPU 1 > +#define KEXEC_CRASH_HP_REMOVE_MEMORY 2 > +#define KEXEC_CRASH_HP_ADD_MEMORY 3 > +#endif /* CONFIG_CRASH_HOTPLUG */ > + > /* kexec interface functions */ > extern void machine_kexec(struct kimage *image); > extern int machine_kexec_prepare(struct kimage *image); > -- > 2.27.0 >