Message ID | 20221125063248.30256-1-jgross@suse.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3806161wrr; Thu, 24 Nov 2022 22:38:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf4dkBXx3fgTCd/KnlmWkvDqkMI9DQaWCaaDzuH2bCohrwp58KJoCCoHzzaD8hY5DxnTCmcJ X-Received: by 2002:aa7:d594:0:b0:46a:6950:e229 with SMTP id r20-20020aa7d594000000b0046a6950e229mr8065124edq.120.1669358297973; Thu, 24 Nov 2022 22:38:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669358297; cv=none; d=google.com; s=arc-20160816; b=UuorCsIUOcB7h55fWpFq0IxSr/g6Pwal85rhb0VglnVkI12j/FFZ+Roa+LT/2pNPFr r8YuCsD64PhjW19uDnxndL2uRmVDzOchtcN4CE0kCP8CJAJOcfCMo60jWL75VI5ktyh/ +lc+ytkUYv5kkDLHdAeCSY3QlygmWb4sYOqAYmmcormxnFCUl+g6IebTf6jwm3a/yoak gfVR01r1RtkcEy+MgWpdP901NX14tlVb2mUydvw/bZ1YMWyKlRXflwjwXQ0CrzkQQnt9 tmz1GFPyyGP8l27wYXrzpBgkdehRXvmybIpQNVZ1gqEBkaILAeqNeWqEeUuR3CtVx9mo vF+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=fZrAaP9FxcQcpFDkMAFfQgOSXJ+0iWC8i07BQBQ2SXo=; b=iWUoMS8+RPhDR9CZzzbtdp+vgu4qlQeR+WfX7qUvWKzuKH77XUBdd2XZK63u94HRbd 3py7YKiUzBeXnCEFH92byE4KHMGvAB1Zbd9iWjhfuyn3qKjZWM3oWWZH3IMoB2zadiWF mYNRlDpPrkrh+dO0DBGe0GPFJKK6dOjp+w46HNWldooeB9L/SHzrvDnLIAcTPeYeFJPg QX+pT6k8ywk4h9wUncgqJQec8/3IGXbuFa/93LsO+Dkxi5WSDj8CWW0fa3bhphbCT08B yShGwOhEwjXqzCWSptV/e7k3zQrLWlCMrXxPYzH9Yu3v6//vo4PeG+VIu5TaFaCjEwvb +rAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=qAMYWpJA; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt10-20020a170907728a00b007ba49ec6d3bsi2377742ejc.390.2022.11.24.22.37.54; Thu, 24 Nov 2022 22:38: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=@suse.com header.s=susede1 header.b=qAMYWpJA; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229569AbiKYGcy (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Fri, 25 Nov 2022 01:32:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbiKYGcx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 25 Nov 2022 01:32:53 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60BEA27DF9 for <linux-kernel@vger.kernel.org>; Thu, 24 Nov 2022 22:32:52 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id D2DD61FD6A; Fri, 25 Nov 2022 06:32:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1669357970; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=fZrAaP9FxcQcpFDkMAFfQgOSXJ+0iWC8i07BQBQ2SXo=; b=qAMYWpJANmBzfUWnws2e+o51bVKp5OfZVCLdN1sqq6oUe7plzRkRxFH7v1ti+YPOfKqDij DeqpeP5zWgrZ+zlIuvzVqn/rGFayVzBoQ8uHZB36Zy2RxspaDt63/0Ry37qukLJfQslZGt m/vD0GB7HhzRyhYNuyATnQ0xKCggbNQ= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 6DC2B13A08; Fri, 25 Nov 2022 06:32:50 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id fllnGZJhgGMicgAAMHmgww (envelope-from <jgross@suse.com>); Fri, 25 Nov 2022 06:32:50 +0000 From: Juergen Gross <jgross@suse.com> To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: Juergen Gross <jgross@suse.com>, Boris Ostrovsky <boris.ostrovsky@oracle.com>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, "H. Peter Anvin" <hpa@zytor.com>, xen-devel@lists.xenproject.org, Josh Poimboeuf <jpoimboe@kernel.org>, Peter Zijlstra <peterz@infradead.org> Subject: [PATCH 0/2] x86/xen: don't return from xen_pv_play_dead() Date: Fri, 25 Nov 2022 07:32:46 +0100 Message-Id: <20221125063248.30256-1-jgross@suse.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750449046357333748?= X-GMAIL-MSGID: =?utf-8?q?1750449046357333748?= |
Series |
x86/xen: don't return from xen_pv_play_dead()
|
|
Message
Juergen Gross
Nov. 25, 2022, 6:32 a.m. UTC
All play_dead() functions but xen_pv_play_dead() don't return to the caller. Adapt xen_pv_play_dead() to behave like the other play_dead() variants. Juergen Gross (2): x86/xen: don't let xen_pv_play_dead() return x86/xen: mark xen_pv_play_dead() as __noreturn arch/x86/xen/smp.h | 2 ++ arch/x86/xen/smp_pv.c | 17 ++++------------- arch/x86/xen/xen-head.S | 7 +++++++ tools/objtool/check.c | 1 + 4 files changed, 14 insertions(+), 13 deletions(-)
Comments
On 25.11.22 07:32, Juergen Gross wrote: > All play_dead() functions but xen_pv_play_dead() don't return to the > caller. > > Adapt xen_pv_play_dead() to behave like the other play_dead() variants. > > Juergen Gross (2): > x86/xen: don't let xen_pv_play_dead() return > x86/xen: mark xen_pv_play_dead() as __noreturn > > arch/x86/xen/smp.h | 2 ++ > arch/x86/xen/smp_pv.c | 17 ++++------------- > arch/x86/xen/xen-head.S | 7 +++++++ > tools/objtool/check.c | 1 + > 4 files changed, 14 insertions(+), 13 deletions(-) > Ping? Juergen
On Fri, Nov 25, 2022 at 07:32:46AM +0100, Juergen Gross wrote: > All play_dead() functions but xen_pv_play_dead() don't return to the > caller. > > Adapt xen_pv_play_dead() to behave like the other play_dead() variants. > > Juergen Gross (2): > x86/xen: don't let xen_pv_play_dead() return > x86/xen: mark xen_pv_play_dead() as __noreturn > > arch/x86/xen/smp.h | 2 ++ > arch/x86/xen/smp_pv.c | 17 ++++------------- > arch/x86/xen/xen-head.S | 7 +++++++ > tools/objtool/check.c | 1 + > 4 files changed, 14 insertions(+), 13 deletions(-) Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
On 1/16/23 2:49 AM, Juergen Gross wrote: > On 25.11.22 07:32, Juergen Gross wrote: >> All play_dead() functions but xen_pv_play_dead() don't return to the >> caller. >> >> Adapt xen_pv_play_dead() to behave like the other play_dead() variants. >> >> Juergen Gross (2): >> x86/xen: don't let xen_pv_play_dead() return >> x86/xen: mark xen_pv_play_dead() as __noreturn >> >> arch/x86/xen/smp.h | 2 ++ >> arch/x86/xen/smp_pv.c | 17 ++++------------- >> arch/x86/xen/xen-head.S | 7 +++++++ >> tools/objtool/check.c | 1 + >> 4 files changed, 14 insertions(+), 13 deletions(-) >> > > Ping? > > Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>