Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp176724rdh; Tue, 13 Feb 2024 13:12:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUjMKSgB6GRv25H3csTv0KwfjYc70OfIpgb8OPRptmFu1bNAWDCihXe9Ygn1lz//MhXqATioJNxVu+NEN6eLNj9h/d/Ey2AAH2BhJ1l7Q== X-Google-Smtp-Source: AGHT+IHIxekehSThI0QuBUHX3DGaWeq9hv5z/roLdDmWsNb44d60bY469D3XIyXdnhNy163uUfIe X-Received: by 2002:a05:6a20:740f:b0:19c:a16c:8ab4 with SMTP id n15-20020a056a20740f00b0019ca16c8ab4mr620097pzd.47.1707858762536; Tue, 13 Feb 2024 13:12:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707858762; cv=pass; d=google.com; s=arc-20160816; b=F9ndKFf/UIEP2CRn7bwcvj2eJv8qulTYsTCFMcMp317lQI/DyrGi/b1GpTEbJCZwpn 4C78+/5K1q8/X+7wqAyGI6K2sqBtLfsZL0d9NZ47ppzl7hWnx6KuJhD0st6ju+HCMaNA 1YvxMUCXuzkY8cfnDyTQ/tw/83M87Lv/6cqCJpixYKZfDA5odWtMeteNgKRtkzkE+OBy a6WP8hyoXDRCOpAmu5y7G3U8WExy+GA027KqvKua5CqKT1tNEjHV/plT+dJ3KN52U6sM WyL9OEd01pb9LKu/w/TKriZfFN46zMVwdO5u4OAsP+7i/Su5ujIDA8aXxwU0YVHjfnRw M5oQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:subject:cc:to:from:dkim-signature :dkim-signature:message-id; bh=wDzo3sDxLcX+PY8MPqJ3TBw1kK5S3plxLG9oPF/78Vw=; fh=5BCQdHyEDPBOkohTiZ/HTx4b1JqQyZLkgD+els+BR98=; b=Y0LQLpGKSMp8A2f7P1DJCj+nzfcSxR0DR2Jy6rNMe9V4erQzHlFJwdLoWy8jUSuVkZ AZoe3zWph7m3DeUDTlG0XXCxDyTz4TFEL9vtbJseyVgFXJ6pRqnoNjQ/D3oWiI9PzRfC rRU9uELxRfbui6Sboi/6O8qGs4DdmT23+QIdYY+Npwmpq2g4Xk69bL1AieM/44G/LJRa 9lXk7fSTOMxSFPwC5LxsJDCMey2or5j3QUGGISaeI4cWpY6mkj6TipmLFpO8DUnQPT4E 7I+25ILUCJP2rqyUxbyKsttV7pQ421dpoYqcYhFLDE+0OarnsDKgffvntPxghuIsaN3B Yzcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=k2PkmRqo; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-64276-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64276-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de X-Forwarded-Encrypted: i=2; AJvYcCXwZiapPiA571sp3BMLBZEA32n0nby/VT63avvL/WLQgb6GlpiAHCJtSWp4JDMq1EHRMbI44qwMFmgrWrejtB7FFFZBod8nuXY57Eg34w== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i66-20020a639d45000000b005dc49182879si2507102pgd.409.2024.02.13.13.12.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 13:12:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64276-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=k2PkmRqo; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-64276-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64276-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1476B283950 for ; Tue, 13 Feb 2024 21:12:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 047F276C8C; Tue, 13 Feb 2024 21:05:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="k2PkmRqo"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="SbyS0xgX" 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 C3F8B74E3A for ; Tue, 13 Feb 2024 21:05:13 +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=1707858315; cv=none; b=Jqd76VsgT0zUQxWVLnEe4pe1miPmOBaxV76IAhHT9Vodj4KgbSd+5kmUMdfqF41oiq4aMHEZcI5NtwbONlZlbuEjcVq3o/aCi9m85IIHTh7zTphF2hkPWySlE4rWIsne5r+BMQ1SxvShZxa511jSuDqhBCIl5lWW052/tBkmFuY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707858315; c=relaxed/simple; bh=SGXrE8Yw2ANix13HVyPL7ecmVibMK1HhvzhajBLDnlA=; h=Message-ID:From:To:Cc:Subject:References:MIME-Version: Content-Type:Date; b=A4GIthIynRs4/qoRQEYgVB5C5OwjTBbjVUYpBgYTuEEc5+TfotcDvoxK1q0x4yEi2IV3/hE41brhaMqXtC8YGT0gXam17eCsVKN9C7fpsrQ1/iQYZmzvUHZgWnryzxsK88mjF9ZnG8xMPGpvBAAXJwZau4xAdAKmKTgGE4dtWKY= 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=k2PkmRqo; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=SbyS0xgX; 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 Message-ID: <20240212154639.745028043@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1707858312; 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=wDzo3sDxLcX+PY8MPqJ3TBw1kK5S3plxLG9oPF/78Vw=; b=k2PkmRqoIrtlYtsAZz5T5V7QKInngLBGeQP5zHlRE2tefW+sISLfXbJeJSwN+TBYSHqHwK kPh+iZDBu7SZ/PTsHzW8B1wC4BWd3zwGIePsHEeNlM0Afb6PtMtTGD3A8rzFX/ApUTgST9 QNHyg7mKnsZnFqAV9r3vroVhFfQBn7O36+kJjbKKo5ru3Dy8BqKGzjRpaLlfEOy2JqCkYF hgOZelzEIbFiP6zEGY+ydPUXHSlJwXKpccbUuyDbhSoMa7YTre5RzFoV0ia1rqV+MJBCWj Ly2NUB9FkekH3aQnl4a5GjRzfQ+7c/Td7rdb4Sjgf8W3ZJHSqMCH4ZfqWEXV1w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1707858312; 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=wDzo3sDxLcX+PY8MPqJ3TBw1kK5S3plxLG9oPF/78Vw=; b=SbyS0xgXPBt0nhX7p9sPYt5BBY7qZhwQmHZL2+oh07LL+1Khvwm97Z1O0OE0wQ3AxFR6wk EMprhcefQNvB6WAQ== 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 V3 15/22] x86/xen/smp_pv: Prepare for separate mpparse callbacks References: <20240212154529.402604963@linutronix.de> 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=UTF-8 Date: Tue, 13 Feb 2024 22:05:12 +0100 (CET) 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 = 1; } +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() != 0); @@ -455,6 +460,8 @@ void __init xen_smp_init(void) smp_ops = xen_smp_ops; /* Avoid searching for BIOS MP tables */ - x86_init.mpparse.find_mptable = x86_init_noop; - x86_init.mpparse.get_smp_config = _get_smp_config; + x86_init.mpparse.find_mptable = x86_init_noop; + x86_init.mpparse.early_parse_smp_cfg = x86_init_noop; + x86_init.mpparse.parse_smp_cfg = xen_pv_smp_config; + x86_init.mpparse.get_smp_config = _get_smp_config; }