Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1174977rdb; Fri, 16 Feb 2024 07:29:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWLY4GOr+4m/l4w3/19E9S2xQtRRGUALgVSr/4bApK0KCsaB7c7w9yHmFWNmGlzmmJvBkLHYmgp0zHB2GLOUXKPN4dwZsn2T0JMMaryTg== X-Google-Smtp-Source: AGHT+IG20Xb8nYNfbMGl29jJI9gzkdY1znHJSoPkcnszlOmNqQsv0dIxKPfGZKXvZHvnWQ5anPSF X-Received: by 2002:a05:6a21:2d07:b0:19e:99c0:c1eb with SMTP id tw7-20020a056a212d0700b0019e99c0c1ebmr6789096pzb.51.1708097393048; Fri, 16 Feb 2024 07:29:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708097393; cv=pass; d=google.com; s=arc-20160816; b=DE8CSBRFwi4tSSEaKely3rgZUv96hEYWdSAcab5CprztJe6HcZdEDAZ8Ta4feEI3qa 9fjPGwYaU7dA1/Kk6atBKmiQBiVqv7ZtXn8HwsclVTIecndnoTWn6msxz7cifNurAGPu Y3uaPUlNMNHHNfMUkCN+2GX5gnWgEgsj1RgzuEU9l0RhevSJniBn5S0pBTKTf9B0i4+t 0s9/AsrpOvIzMIPgE1jp5MGX6gNmGnbFYg/l8FHm4CHizKxLbWRhfMfN/tkTTkBklhr7 5deXBxKjRGQf27jgZzMpWhwMC6nOzUFbK6zavx3JDI8MCpPouFhA3T3Ir/x09f16HQA7 SLQA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=TjV3z4YqWSBRBkCWBZ2EDbTuT93qzoQZZbVXZejq/BQ=; fh=HfXWoIhgCc+vt39DMIJv/Ec0aAKnw0eFA8QxuIQTUoQ=; b=ubaHjrAqio3c0i1l5BVEAmFW59XuHMlgIqMTMvsbTCJkM98jmQ+C0qmC/B3nJoB5IJ QyNCy1ScFbhZ15PnomWfhguq54p9W6MJD4hvPp6Nzjb7RmAZfeqXyhh4cnYbcWjXpb6A xO+1edaC1KN5r9JaWvoZnU+HCL5fFXtqD6moILOx/nWoinbqQlDeMff0bGHPlAbU83rv vuHOrgTBmMiOW7a6haYxe5P5SYwoShfuOoz7afBTIUzh8JTzayUTae7qTwbDEvPDrKUN aFlmIxVAM3KEh2QKSVc6gXdjrdu3139kDM2pyw8NVqML8Mk77iCWR5XbkaRatWB+409G qkrg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=0mtXXJkh; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=uETAoRib; 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-68827-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68827-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id u190-20020a6385c7000000b005dc528be9acsi28649pgd.475.2024.02.16.07.29.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 07:29:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68827-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=0mtXXJkh; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=uETAoRib; 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-68827-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68827-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A2208B251BD for ; Fri, 16 Feb 2024 15:23:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 125B6148302; Fri, 16 Feb 2024 15:17:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="0mtXXJkh"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="uETAoRib" 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 18CBC1468F2; Fri, 16 Feb 2024 15:17:17 +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=1708096638; cv=none; b=phAv+YmJ2T3bME10GBMuSwQCK2BExMLWRqsihJRUMyundkjbU4pp7Zyt0XvItjveO3uOwiNU61kCXYpA5t3kdeRPuQc/TBPeAsQpOhkh10458BXYL9R1Ei6o3xFozw7TTmeYStRrD0EgJY/FsJUxdMEaNTpykf/hjq5bu2X3oA4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708096638; c=relaxed/simple; bh=bm094Bz6HIOAWPHeJ67KkWS/OApUVuhCem2IJ/VejIQ=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=YgjP3XjrvBo1PpYZ6muF8Lo3q+pwu+lql/dAcV2yrP7svZRQr+Gi7xpqDOqI9BS3c0kefksKl1tN20+8CpJTTZXqrs8fM67UTSBkIH4K9cRF9zACNZRw+dcRMTT4itiESCVsEfCS8p5Sm5BRLJIDIJb7Si9R0JOC3CdAmEccrSw= 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=0mtXXJkh; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=uETAoRib; 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 Date: Fri, 16 Feb 2024 15:17:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708096635; 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=TjV3z4YqWSBRBkCWBZ2EDbTuT93qzoQZZbVXZejq/BQ=; b=0mtXXJkhc1r8EG2/WJYWROlQPxiKEGAmU8p4Z1r8EaylSa6Ars2VvqECKPoVydRNh0YCn3 SJdLdQKr2jI3N2r33ZemYekbn5T5ktVu9M1q0vTrEuy58oz4TxZh13jaPDc3rHftqbbzZT UvCYh5IhT6sYwZZMpd6NvAjTcWNDMKempUA1jQlD2UwtTNV5MrLXslNuLZEo9kjoLoA56q vMz0xI0YxNXhIpkXKwwy/8YsOnoahcn9koGr2K5i79Y/1FuSs9yiQz9h2R32poYDgYkeLS 5qrWAsf+JNKTkJ887YgljCyshQuKlogmUbvjIsFz4GqcRswVJjaNY4To3Hwz1g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708096635; 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=TjV3z4YqWSBRBkCWBZ2EDbTuT93qzoQZZbVXZejq/BQ=; b=uETAoRibvFqP4IB9E5HkwqKx6EQaOocDjB0zkw/yGgc8dpXY6X8zJgREUV8dIhKt2GkvUE rk4gNYIGylsn7MBQ== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/apic] x86/xen/smp_pv: Prepare for separate mpparse callbacks Cc: Thomas Gleixner , Michael Kelley , Sohil Mehta , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240212154639.745028043@linutronix.de> References: <20240212154639.745028043@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <170809663483.398.11626035231102662383.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the x86/apic branch of tip: Commit-ID: 0baf4d485cbe5c1b94433f3f5aed2e6e6cd91b02 Gitweb: https://git.kernel.org/tip/0baf4d485cbe5c1b94433f3f5aed2e6e6cd91b02 Author: Thomas Gleixner AuthorDate: Tue, 13 Feb 2024 22:05:12 +01:00 Committer: Thomas Gleixner CommitterDate: Thu, 15 Feb 2024 22:07:40 +01:00 x86/xen/smp_pv: Prepare for separate mpparse callbacks 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 Tested-by: Michael Kelley Tested-by: Sohil Mehta Link: https://lore.kernel.org/r/20240212154639.745028043@linutronix.de --- arch/x86/xen/smp_pv.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/x86/xen/smp_pv.c b/arch/x86/xen/smp_pv.c index 44c35b1..bd939b8 100644 --- a/arch/x86/xen/smp_pv.c +++ b/arch/x86/xen/smp_pv.c @@ -185,6 +185,11 @@ static void __init _get_smp_config(unsigned int early) 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; }