Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp2155983rwj; Sun, 18 Dec 2022 23:57:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf53BK33NR0sqt0/DgWVt2umxqKcRDAcn/hN3ldY7hKmchCNQSm9isgFyo5Ld+gi12yH4yez X-Received: by 2002:a17:903:3294:b0:189:69cf:9e9e with SMTP id jh20-20020a170903329400b0018969cf9e9emr39242121plb.41.1671436625394; Sun, 18 Dec 2022 23:57:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671436625; cv=none; d=google.com; s=arc-20160816; b=mm6iBKMh/Its7MHtyj6Zc4QZe+yugVP/qGZkK26/cGxw9bpnHulupJKiztgiCVG+rS +AaCSEVeeID2KYu7GPeaiFn1lPsGDs7OZ2d3nDDkZtuH4IOwsx80XzrEcp+h+SdrObtu MAWJ/4zSbQmbUAjuBxn0SaXQfnDtvUWnkJ/DzNzz3aPa/zva7pheXMvA0+e8iBTcB+Ib 1bJWZq2xaebyZxW3kYTvdk9azaqBY5s7sZiC28UktNbaz4mPRZ+CoLePzy3Th895d5Nh HKbbBGwdD21vusffwE++PjpVC5oD4vCJk9MIRoCFEdFYj4BnwmTpDaUxRDAm0v9IfapZ xeNA== 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=lroQEaauydsDS3XBI9G0FXXDhHdZpuGziiitGfhqAV4=; b=KvEPM7wEjCFovihYiSeMKYI/rVWlDA4B0cgoE8Hj+X40l8J8//9viiTa2QxkdeXNXA bu9BeQD99L5+fOQ3NbjMorsCtcvTk72qu4SMW4NAyKfF/0jM9632fJlXPg4g8Z8ndPri gJS1iiUV5iVwTiJ5kamLagZjKWKGPBoLmBmEa7KeAXmeCuWMFwUsqtKebwzr+gIzmErd uw41uc+E39pac1xfV522njFGqCbj9r4cj2PrxTNbUmBJd27eks/nYqDeacrVo/FSlSDY ORMtj5s7Hd3cmzdRPE2EsFrFZnT6MEfaUYZ+b/TRg2Y7/e2PxARIoztC4ZnfxeEOKwvf J6eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=a1PWm23c; 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 x7-20020a170902820700b0018996404dd9si2036779pln.267.2022.12.18.23.56.56; Sun, 18 Dec 2022 23:57:05 -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=a1PWm23c; 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 S231478AbiLSHCB (ORCPT + 70 others); Mon, 19 Dec 2022 02:02:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231167AbiLSHB6 (ORCPT ); Mon, 19 Dec 2022 02:01:58 -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 ESMTPS id 7A602E33 for ; Sun, 18 Dec 2022 23:01:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671433273; 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=lroQEaauydsDS3XBI9G0FXXDhHdZpuGziiitGfhqAV4=; b=a1PWm23cQIZA0UEeKGzPU4UJ5cvtTfSY8G+3QYbS/LyCLudPt532V90WHEt5gMVrG8V0l/ 8y99aFtND1Aamt23UxooyXwuz3HB9kKXnNNQa1IPCA7CDCn+yiRNKdSf7XpnfH+FBebV5Y WLKDh0t71RZZZ4ZzPkQ8g6fHUlYmxzI= 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-332-Mw9N3ZP3Op-oZqbhAUTCxg-1; Mon, 19 Dec 2022 02:01:09 -0500 X-MC-Unique: Mw9N3ZP3Op-oZqbhAUTCxg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0CDBC811E6E; Mon, 19 Dec 2022 07:01:09 +0000 (UTC) Received: from localhost (ovpn-12-41.pek2.redhat.com [10.72.12.41]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 797AF2166B26; Mon, 19 Dec 2022 07:01:07 +0000 (UTC) Date: Mon, 19 Dec 2022 15:01:03 +0800 From: Baoquan He To: Bjorn Helgaas Cc: Eric Biederman , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H . Peter Anvin" , x86@kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Bjorn Helgaas Subject: Re: [PATCH 0/2] kexec: Remove unnecessary arch hook Message-ID: References: <20221217155842.GA389338@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221217155842.GA389338@bhelgaas> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 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/17/22 at 09:58am, Bjorn Helgaas wrote: > On Sat, Dec 17, 2022 at 05:48:51PM +0800, Baoquan He wrote: > > On 12/15/22 at 12:23pm, Bjorn Helgaas wrote: > > > From: Bjorn Helgaas > > > > > > There are no arch-specific things in arch_kexec_kernel_image_load(), so > > > remove it and just use the generic version. > > > > I ever posted below patch to do the same thing, Andrew only picked the > > memory leak fixing patch. > > > > [PATCH v2 2/2] kexec_file: clean up arch_kexec_kernel_image_load > > https://lore.kernel.org/all/20220223113225.63106-3-bhe@redhat.com/T/#u > > Indeed! Sorry, I wasn't aware of your previous work. If you repost > it, cc me and I'll be glad to help review it. Sure, I will repost the patch for reviewing, thanks a lot. > > > > Bjorn Helgaas (2): > > > x86/kexec: Remove unnecessary arch_kexec_kernel_image_load() > > > kexec: Remove unnecessary arch_kexec_kernel_image_load() > > > > > > arch/x86/include/asm/kexec.h | 3 --- > > > arch/x86/kernel/machine_kexec_64.c | 11 ----------- > > > include/linux/kexec.h | 8 -------- > > > kernel/kexec_file.c | 6 +++--- > > > 4 files changed, 3 insertions(+), 25 deletions(-) >