Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp272882rdh; Mon, 18 Dec 2023 20:23:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IFYRoaTbE32yubIOYGplkDJUxhYuDUTPh4VuxXRYrNslX0hOJvHrJV57ltOE7wc7nEBmfz/ X-Received: by 2002:a50:999d:0:b0:553:3715:4e00 with SMTP id m29-20020a50999d000000b0055337154e00mr2096091edb.22.1702959807356; Mon, 18 Dec 2023 20:23:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702959807; cv=none; d=google.com; s=arc-20160816; b=0ktmD97EGGoi+eNQ+Oa7QBcNxeBiOk6O4eKAO8hL0iEvgqXP+7i8qDPio9ycxda0Wo kRHlPvcGNF08757x5dRNwPbx+0NMLbfACpz1HM2XLa0iPxQhtGGN0a5s1Dsxdu9LHY+P owEu6Qo1bS/aVxMAe5M7soTCKh/+CzPtie6aOiaqS6vlj+PLBJYuyt5n3BcR3gcp9UDu BkSbNB0D3QqFsqUvHD2DLCs0n6Ml3FhpR//GNXbqXepnjfwDb/xKNhwqCBoAWnNGKr2b K3d/AxzW+vxrdrj0fZ4G5bDg4w4VkM+PPR5D/QdSW/QQo2MXOESuD2DUZAlYmaSm3Ajr yWJA== ARC-Message-Signature: i=1; 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=Igax5UgIuAw00YDf5GDEbl6lhbS7QUhnxvUBz1O2KrM=; fh=h9JRYyuyot1lMDf/rZHGOhPCtbFKIgqjDW0jLPbi3CA=; b=ks+DnFQlgp0L/dP65MFopNSyYJBaB2De7AQIUHF8id0KQlTx834LOXqADmQ06dEzCu kAhJLoXbo14G810/3eZJxIcPb1VAOrGRRnlnPN4gdoSshVch8EJfz50rawTJXrEST+mo QW/R8hmfHy9I54p+QpS733bsHt9XkMJcoUMKT8Fzs8KOeBjbSgqIgslgq1FzmAUS++cE W3gqYldLm3xmodjwZMOGuO1zKikYyIt1NwwW6IXryUVoHS9ReVSmf3PFIStGVrlX9mQK KQne2ZQ+yVGq8xCy2SVLsX684WaUNVPzlNWSjY9sBlM+am03iF/45hVadz3DTDy4EuOa +8Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QT669H8b; spf=pass (google.com: domain of linux-kernel+bounces-4671-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4671-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 1-20020a508e41000000b005537678d0cbsi751107edx.10.2023.12.18.20.23.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 20:23:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4671-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QT669H8b; spf=pass (google.com: domain of linux-kernel+bounces-4671-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4671-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 229AF1F24C32 for ; Tue, 19 Dec 2023 04:23:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 11590C2CF; Tue, 19 Dec 2023 04:22:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="QT669H8b" X-Original-To: linux-kernel@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 58BF96FB4 for ; Tue, 19 Dec 2023 04:22:34 +0000 (UTC) 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=1702959753; 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=Igax5UgIuAw00YDf5GDEbl6lhbS7QUhnxvUBz1O2KrM=; b=QT669H8biv0ramN14eSOZuXyDzIzRLRtBx3s3FQRscjsw2lNa6jhWHljzkx/AW9rqMN7/3 iir0xDQ/n32l3lB7jVTy0/9J/d0V+6rDxmREPrpQTnTCH0Aq1H70eCjXbhFbCErFa9zVgs UZKi82vE6kpMkHtieb6zHkhZaM9gVOI= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-214-GwesIK5LNZ-Romlg7SDN4A-1; Mon, 18 Dec 2023 23:22:29 -0500 X-MC-Unique: GwesIK5LNZ-Romlg7SDN4A-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (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 2BB573813F22; Tue, 19 Dec 2023 04:22:28 +0000 (UTC) Received: from localhost (unknown [10.72.116.38]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F16F6492BF0; Tue, 19 Dec 2023 04:22:26 +0000 (UTC) Date: Tue, 19 Dec 2023 12:22:22 +0800 From: Baoquan He To: James Gowans , akpm@linux-foundation.org Cc: Eric Biederman , Sean Christopherson , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Paolo Bonzini , Marc Zyngier , Arnd Bergmann , Tony Luck , Borislav Petkov , Thomas Gleixner , Ingo Molnar , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Pavel Machek , Sebastian Reichel , Orson Zhai , Alexander Graf , "Jan H . Schoenherr" Subject: Re: [PATCH] kexec: do syscore_shutdown() in kernel_kexec Message-ID: References: <20231213064004.2419447-1-jgowans@amazon.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: <20231213064004.2419447-1-jgowans@amazon.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 Add Andrew to CC as Andrew helps to pick kexec/kdump patches. On 12/13/23 at 08:40am, James Gowans wrote: ...... > This has been tested by doing a kexec on x86_64 and aarch64. Hi James, Thanks for this great patch. My colleagues have opened bug in rhel to track this and try to veryfy this patch. However, they can't reproduce the issue this patch is fixing. Could you tell more about where and how to reproduce so that we can be aware of it better? Thanks in advance. Thanks Baoquan > > Fixes: 6735150b6997 ("KVM: Use syscore_ops instead of reboot_notifier to hook restart/shutdown") > > Signed-off-by: James Gowans > Cc: Eric Biederman > Cc: Paolo Bonzini > Cc: Sean Christopherson > Cc: Marc Zyngier > Cc: Arnd Bergmann > Cc: Tony Luck > Cc: Borislav Petkov > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: Chen-Yu Tsai > Cc: Jernej Skrabec > Cc: Samuel Holland > Cc: Pavel Machek > Cc: Sebastian Reichel > Cc: Orson Zhai > Cc: Alexander Graf > Cc: Jan H. Schoenherr > --- > kernel/kexec_core.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/kernel/kexec_core.c b/kernel/kexec_core.c > index be5642a4ec49..b926c4db8a91 100644 > --- a/kernel/kexec_core.c > +++ b/kernel/kexec_core.c > @@ -1254,6 +1254,7 @@ int kernel_kexec(void) > kexec_in_progress = true; > kernel_restart_prepare("kexec reboot"); > migrate_to_reboot_cpu(); > + syscore_shutdown(); > > /* > * migrate_to_reboot_cpu() disables CPU hotplug assuming that > -- > 2.34.1 > > > _______________________________________________ > kexec mailing list > kexec@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/kexec >