From nobody Sat Feb 7 04:52:16 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4BA6C001DB for ; Mon, 7 Aug 2023 13:53:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234650AbjHGNx4 (ORCPT ); Mon, 7 Aug 2023 09:53:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234639AbjHGNxJ (ORCPT ); Mon, 7 Aug 2023 09:53:09 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A0BA19AF for ; Mon, 7 Aug 2023 06:53:00 -0700 (PDT) Message-ID: <20230807135027.272696521@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1691416379; 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: references:references; bh=EYJQm55oUOskfK42q+cCkqIk4Ng20LK8t+Y3B5NsE1Q=; b=zU/CWefGrrijcHZNe0gp8+zI3xflV8ngWsF8njohR2f4n44hzAZZ83gdmS6ndp4hGx4glT XFvBE3diBtAuFI4fIEA3sYNoOxWEEy3GqImCH0fijuJcHtJ3WmN83k90zlZeJpRJNB0v1o xbklaBa/UbYNa92h3NuvNSiNcAtuQj0cvbgMSqA4Zdtsi8PXT/wUOoL3A+AhjePhMXFIXp wVz3C4V5R/AvkbWAfkSv3hMxiMbUqd2CgB0zgqxkF3JfLuoAR3VMEwBRgQrvio4733aGvP T6tzKGixPwJCoBstE4r/2ppRfjwxZy/UyPZqLwwKXFdCXQ+K/NfiuEPtJ0gMGw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1691416379; 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: references:references; bh=EYJQm55oUOskfK42q+cCkqIk4Ng20LK8t+Y3B5NsE1Q=; b=2AcvcxdJ5xheNZyDGUkC3lOpedA6m5v74DCE56NsaMpqFxzH2sM80u+O4KTMsw8S843rEW iYwf+/1fO8rMOGCw== From: Thomas Gleixner To: LKML Cc: x86@kernel.org, Tom Lendacky , Andrew Cooper , Arjan van de Ven , Huang Rui , Juergen Gross , Dimitri Sivanich , Michael Kelley , Sohil Mehta , K Prateek Nayak , Kan Liang , Zhang Rui , "Paul E. McKenney" , Feng Tang , Andy Shevchenko Subject: [patch 16/53] x86/xen/smp_pv: Prepare for separate mpparse callbacks References: <20230807130108.853357011@linutronix.de> MIME-Version: 1.0 Date: Mon, 7 Aug 2023 15:52:58 +0200 (CEST) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Provide a wrapper around the existing function and fill the new callbacks in. No functional change as the new callbacks are not yet operational. Signed-off-by: Thomas Gleixner --- arch/x86/xen/smp_pv.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) --- a/arch/x86/xen/smp_pv.c +++ b/arch/x86/xen/smp_pv.c @@ -185,6 +185,11 @@ static void __init _get_smp_config(unsig smp_found_config =3D 1; } =20 +static void __init xen_pv_smp_config(void) +{ + _get_smp_config(false); +} + static void __init xen_pv_smp_prepare_boot_cpu(void) { BUG_ON(smp_processor_id() !=3D 0); @@ -455,6 +460,8 @@ void __init xen_smp_init(void) smp_ops =3D xen_smp_ops; =20 /* Avoid searching for BIOS MP tables */ - x86_init.mpparse.find_mptable =3D x86_init_noop; - x86_init.mpparse.get_smp_config =3D _get_smp_config; + x86_init.mpparse.find_mptable =3D x86_init_noop; + x86_init.mpparse.early_parse_smp_cfg =3D x86_init_noop; + x86_init.mpparse.parse_smp_cfg =3D xen_pv_smp_config; + x86_init.mpparse.get_smp_config =3D _get_smp_config; }