Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp927329rdb; Fri, 20 Oct 2023 03:46:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFGVl39tExePAzD5FJ6hjjGPqDohdSpukWhAMM7UDHqjAFi1+2io5v9rnkpbJ5QcuHTg0RU X-Received: by 2002:a17:90b:1098:b0:27d:54b9:c3d4 with SMTP id gj24-20020a17090b109800b0027d54b9c3d4mr1514468pjb.1.1697798780908; Fri, 20 Oct 2023 03:46:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697798780; cv=none; d=google.com; s=arc-20160816; b=lU6KpVkImY1VRk1uP0YiWB1BFvxaz9nLVQH2NMe7juhradPPwwV1WDahc6c871bEgC hxFScXAYvGcwi0wIQ2oNkmp/7BJMm/2vdkYk9cKCa6GIcWVjJwFt3wJKTaAb5tfkszbw NEZ37F1UjhR6hdGEpoWzKMfyM5unQ3KNLqX36OTuAk0YnUDte0g5NgsVvBhJf9gT8uUL lwBOP81tx3E+S6xZM/bJMJ/VkGPYDI5S6vvmEDWuMlzPB+YV9Y8dPy3T8c/qXUx2RApV wz0GeePCqLlLKzbCACYr107RWoz9uMnjJ7aIO3c9Czer036GAclqVVPQaL9JVUQXMz+8 24QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=BOQy2S+gkRQ6GqEG1l3wx7Pc1XFdYna8OiPHPqKzES4=; fh=E5o4zZIsEflJABtz4FQzSW1J3LdkJv3VsoaKekyLUEA=; b=lphEATNSkB/Slv5gPo92XLZetwT64V+bixMXg2uDusP2RB9kCosmnb/a5RfgCchhwU O46pZ47010AID30x90G1J/Hclbb3qCGtImrfsy3Odzlqwr2pMmkzCsqg6CcaRR9PyPjP vjanPigg2qy6Uv56bQb76HgSgQ3K8MDgRj1MqGA/zUMXW3WZD3OkKfHCov8whn3bXHLY IjwMjXe6NkdRKvvJI1ilBlManKTQS4iesi0mH3M3pis7v+4lA+Kxd6d+4la0w1gtsozV p8P4/K6pMl5tfYAX4Wxpt/m7Cc+nXD4LWIiGVdLiWfgaPRGRdXpBnM19GrQ8Y99E2QdF UVYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b="ifl/oYvh"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id 25-20020a17090a01d900b0027ce8bab3b4si1588276pjd.113.2023.10.20.03.46.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 03:46:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b="ifl/oYvh"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 64CD882F569D; Fri, 20 Oct 2023 03:46:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377198AbjJTKpe (ORCPT + 99 others); Fri, 20 Oct 2023 06:45:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377195AbjJTKpU (ORCPT ); Fri, 20 Oct 2023 06:45:20 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B3051994 for ; Fri, 20 Oct 2023 03:44:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1697798659; bh=BOQy2S+gkRQ6GqEG1l3wx7Pc1XFdYna8OiPHPqKzES4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ifl/oYvh+TRsSqRgEPMixGOqr4MoU0N6idL02NbzyNh9SF3hMbCT+41P1QDWt9mVo r0TnbRSCGpHxnFA9gfGRPjgqC0x+mJUC+G5G3bjzrS2ECDmKQriQsQBsa5eSkJrlLT nIqcKEqedWmBVS5HNXbL1uOSBHiHHvVSm1LE7Kg0f1/pSXNmJVbpWAnvbch0WWD0+u Z0dVWmEId377e1yEOsZALaWYmd8CxmAeINvjgQIdioHEWLBHybz/2wsXn2p1O86dEd SGlFy6Qr3r8lxy7s+ZxRnYq6QqQnhT34XhJPgr0BVQ0hdxxZZmMskpbccxYulBee/c Cwb6zW0meP0UQ== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4SBh6B6KH4z4xdP; Fri, 20 Oct 2023 21:44:18 +1100 (AEDT) From: Michael Ellerman To: Srikar Dronamraju Cc: linuxppc-dev , Christophe Leroy , Nicholas Piggin , Peter Zijlstra , Rohan McLure , Valentin Schneider , Ajay Kaher , Alexey Makhalov , VMware PV-Drivers Reviewers , Josh Poimboeuf , virtualization@lists.linux-foundation.org, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/6] powerpc/smp: Move shared_processor static key to smp.h In-Reply-To: <20231019130843.GI2194132@linux.vnet.ibm.com> References: <20231018163751.2423181-1-srikar@linux.vnet.ibm.com> <20231018163751.2423181-4-srikar@linux.vnet.ibm.com> <87sf675im3.fsf@mail.lhotse> <20231019130843.GI2194132@linux.vnet.ibm.com> Date: Fri, 20 Oct 2023 21:44:14 +1100 Message-ID: <877cnh60ap.fsf@mail.lhotse> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 20 Oct 2023 03:46:14 -0700 (PDT) Srikar Dronamraju writes: > * Michael Ellerman [2023-10-19 15:41:40]: > >> Srikar Dronamraju writes: >> > The ability to detect if the system is running in a shared processor >> > mode is helpful in few more generic cases not just in >> > paravirtualization. >> > For example: At boot time, different scheduler/ topology flags may be >> > set based on the processor mode. Hence move it to a more generic file. >> >> I'd rather you just included paravirt.h in the few files where you need it. > > I thought, detecting if a Processor was shared or not was more a > smp/processor related than a paravirt related. It's both really :) It's definitely paravirt related though, because if we weren't *para*virt then we wouldn't know there was a hypervisor at all :) But having smaller more focused headers is preferable in general just for mechanical reasons. cheers