From patchwork Tue Feb 13 21:04:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Gleixner X-Patchwork-Id: 200606 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp809196dyb; Tue, 13 Feb 2024 13:08:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX039zQkOJVU6lqTWE4zK6C0I7+UWZpDPZPLabJUmHAb22+P39KJYvog3oX/jQpGg3AHRv16eDyd/rw0CgNW1VNTRlZ2g== X-Google-Smtp-Source: AGHT+IH0gKmnMGwC2Z1vv0+N4stBQWdLQ62/DqCIpqpJ22FZWWt2ZplKrNU0zUAJq9ahPlwrPfhG X-Received: by 2002:a05:6a21:2d06:b0:19e:67b0:9ac6 with SMTP id tw6-20020a056a212d0600b0019e67b09ac6mr1095323pzb.1.1707858510791; Tue, 13 Feb 2024 13:08:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707858510; cv=pass; d=google.com; s=arc-20160816; b=bg2k9AJLB33Ogy/hfSfpmPBbtgDYyveNa4KQsJBnlEIHgFAxzcu2W2E5n1GF97ibFS zLWd6yC7yZpgkrFy4rNfmgXR6/MUU0rfW5yon+B9BvyI+E/xldLu58CD1kdQ3Xj7jMeg PrKoHg0BHZbAprD5tGwnjX6I9zmiCdys7JNbcCJDKjbS7y9jvIB1SBxHFvRPX6PWfSno hrGrPXABpjQ1eVgRSLbDaJ4OOG4dMiS4B7fuv6tn6PPLFKFx/3K/2nE3WnhUuOIf+A3U G5fIzxItCrMEiCSsuoiGimYt4L1b2GcB0jOB7n6EAXincG/VnX8tSkmf3MrSVISmd93S +DGQ== 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=FbuD1O+gIHkW4aafTltcw6F2nn7P77ab8V2DhyeRBhw=; fh=siy+jeg92ksokU2opIyaamyt7jLiqQv7cH54Lqe6zJA=; b=ZTotAjUgzyNE3kMNLl8n3vskEJK7bE4aTgidlwWpSKOM4tiQD9Y/vfo2IVXVwm0MoE 5YMGY6bfgTW0wYDgk3LmHvGzrDF0A84wRJQ/hQL1b+h+8EsRRWhmpT7MysxFwiEdTd4q ve4PhO4aeGe4NQjdULhIeh3D1kMX0uwW388qJZfY/w1isOHx6qrDYJgGwIdaen6+7lOT Pc6HAeZjerVuwSnOTeBZOTJCJznOtrdoOCJHGKedMNQPbfgXrY25Jfdg+6RjJI2RcZUM uQe+TFC/JK6tswG79nuALazB4QoVbuT/wYmNQVtzZV9B7v1133tJ7DP8gX9dJuvg57H8 Aj4g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=t58RiYNC; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="DoF4S/jW"; 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-64258-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64258-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de X-Forwarded-Encrypted: i=2; AJvYcCXbLVwZJq9NbprFvnuLdT3MB9mCAwfrxlTfZBNW3RPawe8U+GNZXmCQnKEpb6kD09sREMUSmXhXDFuOJ2nIy9ooT2Gv8g== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id dq8-20020a056a020f8800b005b86142ee56si2478720pgb.277.2024.02.13.13.08.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 13:08:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64258-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=t58RiYNC; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="DoF4S/jW"; 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-64258-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64258-ouuuleilei=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 90C3F2868DA for ; Tue, 13 Feb 2024 21:08:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AC8F8651AD; Tue, 13 Feb 2024 21:04:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="t58RiYNC"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="DoF4S/jW" 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 9023E61670 for ; Tue, 13 Feb 2024 21:04:26 +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=1707858268; cv=none; b=BFoS4fLtyC6DVQmYQqFt7qI/8D/5UL0fKA9DCVnNlDgo0okI2qvvHy2LyoVYkaOXsMTQGAOuL/Hd/B5gQBjyOmENF0SD9JG1GAutI6T2pU742xICfMiA47gWtIlysVEoUtDZWCwXBSKVndkiZuFW9Pyt7MtesC5JlXWZvyyWbGU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707858268; c=relaxed/simple; bh=MHLos4OO38TSQH8/H8GP70yEERl2ShArQvc3qykWjEA=; h=Message-ID:From:To:Cc:Subject:References:MIME-Version: Content-Type:Date; b=O6u0xMN9RncxI4RTwHwu7rVJz38QNgE/i9VVhoewqa0aTkru3MYKPXnjS8gYUCafUpb7ynbdLu0FrO8++PFBFdGk85t3dBJzah+3YXi4bUQmlhlX1z5Y1PimWl+bHqyk8qJos4b/nDDQyoaSj9g5r+ibTCqn7JzAz+lFUSvkJoQ= 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=t58RiYNC; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=DoF4S/jW; 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: <20240212153625.576579177@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1707858264; 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=FbuD1O+gIHkW4aafTltcw6F2nn7P77ab8V2DhyeRBhw=; b=t58RiYNCtr79SM5idTWisW0tlivueEu2dGa40kVyJkZNm1sMMQxmii1a1Feb1tf62n5hVW dDfG9g+NEbc+yhN6Uf4uoDtR7E6dCtseeFEjeNODLpwHLryvwBWINN3CwqBh+J3gx9cRUF DVSK/SzWiheQqb0W13ei28cWDQBPIMlpiNvrAR5tANsI78wSXa0XOAgjzZKi01VPmbs8PV k7YvW+du8lyIegPZwgLoZEBagSyp+yTZKJKwwygjdUMMEIcwh4MU0wPXkgCVo6kD5z1a1P XeMQm4VMg2CQAXj4IbbCQs755Sp00aUTEmB+HZgQwGkJkJ7gdfxi2LY35B6Y1A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1707858264; 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=FbuD1O+gIHkW4aafTltcw6F2nn7P77ab8V2DhyeRBhw=; b=DoF4S/jW5iwZpkJntMYAQvjj3okcQ4bl5EQ+92ACtXamNVd6hFTrMy27+RqlQUhcHTA7uz iWGY9XZmDvnWH5Dg== 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)" , Wang Wendy Subject: [patch V6 18/19] x86/xen/smp_pv: Remove cpudata fiddling References: <20240212153109.330805450@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Tue, 13 Feb 2024 22:04:24 +0100 (CET) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790819445522117667 X-GMAIL-MSGID: 1790819445522117667 From: Thomas Gleixner The new topology CPUID parser installs already fake topology for XEN/PV, which ends up with cpuinfo::max_cores = 1. Signed-off-by: Thomas Gleixner Tested-by: Juergen Gross Tested-by: Sohil Mehta Tested-by: Michael Kelley Tested-by: Zhang Rui Tested-by: Wang Wendy --- arch/x86/xen/smp_pv.c | 3 --- 1 file changed, 3 deletions(-) --- --- a/arch/x86/xen/smp_pv.c +++ b/arch/x86/xen/smp_pv.c @@ -73,7 +73,6 @@ static void cpu_bringup(void) } cpu = smp_processor_id(); smp_store_cpu_info(cpu); - cpu_data(cpu).x86_max_cores = 1; set_cpu_sibling_map(cpu); speculative_store_bypass_ht_init(); @@ -224,8 +223,6 @@ static void __init xen_pv_smp_prepare_cp smp_prepare_cpus_common(); - cpu_data(0).x86_max_cores = 1; - speculative_store_bypass_ht_init(); xen_pmu_init(0);