From nobody Thu Sep 11 12:46:14 2025 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 43719C001B0 for ; Mon, 14 Aug 2023 08:57:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235658AbjHNI4s (ORCPT ); Mon, 14 Aug 2023 04:56:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235358AbjHNIyj (ORCPT ); Mon, 14 Aug 2023 04:54:39 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BB8610B for ; Mon, 14 Aug 2023 01:54:38 -0700 (PDT) Message-ID: <20230814085114.422748199@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1692003277; 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=DKDeifQNE2gzfZT0qDOAFL1F6DNu3u0Ktu+/JKbdS38=; b=TYxBIHZkonVHLLx5Ica8jZF8hPJkiGu6nOwHuvcTV02nnbSacsa77jMhhbEUoiyurrWJK8 j4IKNVELYN90/ZcloktkeGNLslegl4wmiNGio7xwH5nnS1UL2IvQcmheLK9E9GS03UrOML SdzCbiHyvoeG8YkenYQ6zDKasg8DBhwjFUAz7Lqmp1Lt7QvaSIsQ1WLsykaadsRos2VJg6 +mvpxkdOljE5/vT2UGKok50TMqUEP+E/bzvMbPYXNFa/5Leu5Jeu6895Q7t3im2F4lDjKZ xyaR4Y9BvoEN/6bdZYvuMcjx/KX6iamAj9nQZmTueNzKrNuHkpIk/YQdrzMVGw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1692003277; 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=DKDeifQNE2gzfZT0qDOAFL1F6DNu3u0Ktu+/JKbdS38=; b=kusI9gzoglLVpvJc/LiUKOYcTlzdvhUeXFlIWHGapRktAY7UnVOXqv2GUZPj8K17UfiBMt ujln9XXjJawqrXDw== 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 , Wei Liu , Pu Wen , Qiuxu Zhuo , Sohil Mehta Subject: [patch V4 40/41] x86/xen/smp_pv: Remove cpudata fiddling References: <20230814085006.593997112@linutronix.de> MIME-Version: 1.0 Date: Mon, 14 Aug 2023 10:54:36 +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" The new topology CPUID parser installs already fake topology for XEN/PV, which ends up with cpuinfo::max_cores =3D 1. Signed-off-by: Thomas Gleixner Tested-by: Juergen Gross Tested-by: Sohil Mehta Tested-by: Michael Kelley --- V2: New patch --- 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 =3D smp_processor_id(); smp_store_cpu_info(cpu); - cpu_data(cpu).x86_max_cores =3D 1; set_cpu_sibling_map(cpu); =20 speculative_store_bypass_ht_init(); @@ -223,8 +222,6 @@ static void __init xen_pv_smp_prepare_cp =20 smp_prepare_cpus_common(); =20 - cpu_data(0).x86_max_cores =3D 1; - speculative_store_bypass_ht_init(); =20 xen_pmu_init(0);