From nobody Wed Dec 24 23:36:00 2025 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 0C2F1605DA for ; Tue, 23 Jan 2024 13:10:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706015431; cv=none; b=lurjok6qt89XO/nSWKop4CX6h67COPy+L2BMQOzfCvf6NAOCPsTYlmu+GT8DYYxvIAn/qtIDSf2H1e19a7WYJpMO1mncKhBfND2rZyKNRJgnclZJiti2+S4yl4CoPqwf7sGjcrrijUUbkqYLPAm+7gGiZKSz+Gh4UGFn0oKXpFQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706015431; c=relaxed/simple; bh=nUpNZcdc093SnKD/RzaHx1yjC91+GV7vZOrR0k4MDlI=; h=Message-ID:From:To:Cc:Subject:References:MIME-Version: Content-Type:Date; b=nNsYxtrPWoc32198vj8hIfSsr9yaxs7XDrNPBNgCLSXgj90nkErTxjR+Ns+yOcip+V0ssR/8K9SH+gmJhKaFxgjO243fe88EBOO5APya6PZpMZc54gLP1hTS8ymHn3gzAGunKLwdKXXlwIfTGhr3JYKFs7vj1ZfvnWvVlp1iXYc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=1bO9GgP3; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=UKH5Cn7R; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="1bO9GgP3"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="UKH5Cn7R" Message-ID: <20240117124903.311050361@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1706015428; 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=HbQnCSTMFWNEJJRb0rpRrrg5GWoXYejqQZW164TKFPU=; b=1bO9GgP3GHjI8I+FySagSUUnSdaeIP3CNWMu8RZrmJhaB9g7qSMNMJ+dnKBVzPYnZe0ily BecIqSM3CEacKeA+PeT2eX1D00L+pWUw6sQvbkPsoovhqIL6QF8qISkcRefbj/0/kJ73m4 3K2yMWjn3UjBHHZ/mP426J1/ICrYj9md4jo1QSX2nH3p6IEakigy14YjH0VSMENuAS1Icl sV+Z7r9wrhC310No4GdzXND4FFd79U4YFZ/K58ZpHlerpOvDpXDFw8jq2O12Y7WyiiwgF3 k3V4oCopLDjYVM81+sCsgaQ9SUtB2WOrQ7QaAh8I8Th3T2y5a97Jhi1sesGB9Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1706015428; 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=HbQnCSTMFWNEJJRb0rpRrrg5GWoXYejqQZW164TKFPU=; b=UKH5Cn7Re85pIiT+xDNzvSP5zWrUMpSW6OiC78mfApyaOPYssBev48CxFUHoQy+zgEgie3 woYx/RCtj8NUEpCw== From: Thomas Gleixner To: LKML Cc: x86@kernel.org, Tom Lendacky , Andrew Cooper , Arjan van de Ven , Huang Rui , Juergen Gross , Dimitri Sivanich , Sohil Mehta , K Prateek Nayak , Kan Liang , Zhang Rui , "Paul E. McKenney" , Feng Tang , Andy Shevchenko , Michael Kelley , "Peter Zijlstra (Intel)" , Andy Shevchenko , Wei Liu Subject: [patch V2 15/22] x86/xen/smp_pv: Prepare for separate mpparse callbacks References: <20240117124704.044462658@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Tue, 23 Jan 2024 14:10:27 +0100 (CET) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Thomas Gleixner 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; }