From patchwork Wed Jul 5 10:40:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 116066 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1785006vqx; Wed, 5 Jul 2023 04:07:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlEpPVf1xG3rom8WiKzPd3+bdMBeJ1NL+XwUk62E7FycjUJ5RHL1NtGUeZAKIQTihH15aBtt X-Received: by 2002:a17:902:b208:b0:1b8:b2c6:7e8d with SMTP id t8-20020a170902b20800b001b8b2c67e8dmr885411plr.66.1688555276863; Wed, 05 Jul 2023 04:07:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688555276; cv=none; d=google.com; s=arc-20160816; b=kc72ADW39vd4THElmK71o3OzMrbaAPfsIIGjOOkcjpe7rmUCjezfhGhSH/YOcsmItZ mHLEgRPek5ONBt/MriIm/fpk0z2vpJq7isN5w55Wmf0bZfW1VQtX6uSRyPXFozHlFAdc kA61BIW6YORvIUENSiFrvur95rS5Ule2NJxKb/cx5CggEiq0LkkLSRSjiZ6Sr1FCbTOS 2k8LoT/TofycRnOddC7/LjmmUx+tQxf93x6aJIpHrLF/SYdZacAojwam2OZbgZu9fmAl 4RAlLSg2yVBOde7F3GdtXD+l+QXGA3HLVOHQy9hyW3MKO8b1P4jBLO1iDJvJ9f1jJ3x5 sgLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=ovbrxVE68OGB4mGLejvxcJ2FvxKGgQrffrokf0loOvg=; fh=G2lN7Ww9MEZLqKHalsFDHpFymrPlRYeIx/VsWYF8h/I=; b=oPFaYcY5bmKXUJnSLnGs2s+CSVXsAyIXgBHIrDXmK6CK2WMx8d4EJ2WVf2Bb+d4kfI Pf3uJ//vWdq1ScT3mhKLAzqE4Tia26B6/hBwYUQ83qn8QlbawZ4bY8oxkPZo28nXQXyU lEf4I4ncZnHEGJp3GMZK5y6so+1XCPb/rhZrP9/owHo3igyWeyPZevGpGMhP7Lv8GwKO H7xxRUt6uAfwZReC3ODn7VDr3Onlk8p6puAq0aY4Z4MCYruBh9ssYdYeI/djqWjodV7w 26KRMRCrVHpAg7YDrDoO9CuEAHFUTqELmPh7GcV5S343FXrGMCb29ZHbV3kpZrPcpU3p mUFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=gPrz+4dq; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d16-20020a170902ced000b001b802129b3dsi11634504plg.34.2023.07.05.04.07.39; Wed, 05 Jul 2023 04:07:56 -0700 (PDT) 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=@linutronix.de header.s=2020 header.b=gPrz+4dq; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231628AbjGEKka (ORCPT + 99 others); Wed, 5 Jul 2023 06:40:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232170AbjGEKk1 (ORCPT ); Wed, 5 Jul 2023 06:40:27 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E32921727; Wed, 5 Jul 2023 03:40:23 -0700 (PDT) Date: Wed, 05 Jul 2023 10:40:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1688553621; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ovbrxVE68OGB4mGLejvxcJ2FvxKGgQrffrokf0loOvg=; b=gPrz+4dqnyKKr2R0NPP3gMhHrZru3Vds5QvAa4JaSZkEA1dkz75NB5phvOW0qnEO6v/uLq 5ncinBiN6nb60GEdsip6PKomQNzSs1VE/GBXtYqonRkN3WvcbDMx2pODTAHCuj616rqkv3 ovffTXqFzBpV1d89UiZ9AT/6KN/B2IS9d59PgHWFZzb5EvN89bPkGRp3FqAk/w8lJj/xL9 zFZIvEHp10+SIu8WdSTHM5XYlUewceg1/WZjNvmlls/NuiMPZztMh4/OsdL+c/aLovnomd E0BHkO8ITvs+4nxVvXuz9l9k/shgMfySPTDEteOiGLYUs3iwvSzQe/lvL2xlxQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1688553621; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ovbrxVE68OGB4mGLejvxcJ2FvxKGgQrffrokf0loOvg=; b=0z1JVdtQRAzeEex7Dc1N0LbN1eEMgj74EaiG0BOSt3aHS1rc2A9rwZyEsVwg2IXdFpKjj9 es44xo8UWweqprDA== From: "tip-bot2 for Juergen Gross" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] x86/xen: Fix secondary processors' FPU initialization Cc: Juergen Gross , "Borislav Petkov (AMD)" , Boris Ostrovsky , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230703130032.22916-1-jgross@suse.com> References: <20230703130032.22916-1-jgross@suse.com> MIME-Version: 1.0 Message-ID: <168855362058.404.7316702697493690909.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770578537973255681?= X-GMAIL-MSGID: =?utf-8?q?1770578537973255681?= The following commit has been merged into the x86/urgent branch of tip: Commit-ID: fe3e0a13e597c1c8617814bf9b42ab732db5c26e Gitweb: https://git.kernel.org/tip/fe3e0a13e597c1c8617814bf9b42ab732db5c26e Author: Juergen Gross AuthorDate: Mon, 03 Jul 2023 15:00:32 +02:00 Committer: Borislav Petkov (AMD) CommitterDate: Wed, 05 Jul 2023 11:44:16 +02:00 x86/xen: Fix secondary processors' FPU initialization Moving the call of fpu__init_cpu() from cpu_init() to start_secondary() broke Xen PV guests, as those don't call start_secondary() for APs. Call fpu__init_cpu() in Xen's cpu_bringup(), which is the Xen PV replacement of start_secondary(). Fixes: b81fac906a8f ("x86/fpu: Move FPU initialization into arch_cpu_finalize_init()") Signed-off-by: Juergen Gross Signed-off-by: Borislav Petkov (AMD) Reviewed-by: Boris Ostrovsky Acked-by: Thomas Gleixner Link: https://lore.kernel.org/r/20230703130032.22916-1-jgross@suse.com --- arch/x86/xen/smp_pv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/xen/smp_pv.c b/arch/x86/xen/smp_pv.c index a9cf8c8..0b6efc4 100644 --- a/arch/x86/xen/smp_pv.c +++ b/arch/x86/xen/smp_pv.c @@ -63,6 +63,7 @@ static void cpu_bringup(void) cr4_init(); cpu_init(); + fpu__init_cpu(); touch_softlockup_watchdog(); /* PVH runs in ring 0 and allows us to do native syscalls. Yay! */