From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 34088C02198 for ; Fri, 14 Feb 2025 16:45:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=u7I5GRvEE2pzUSXcf/Hf1yjiGAT7XxwAAoIY5GiufU8=; b=JWGD4CM+rVMAyvbj5J7j7tsR5C rojeFZXvJHaTT3e78qTuUnnCI+sIPsSY8cc2YXyb4vN/J7HNWPSVJffyP32Y4F7GiRqgbP23EA7AL 5+3AxrNFVVnZWzsVxgS994POQvhKtKWe0kcJAJSLPH+iZi/5V/nlDon/C40NBBoNGiHhPwfTXJYiW bsG9miAf8qf0NTj7makBO1VK/X+xo42qbs7ob2662t6dLiCWc/YDVcRztY6zz63/JSx9cOMVnJ1k3 Uo+vsCH36UN3MmN1lGv5D5AnFqk0J8tjBqWBlFrngf/4fEDg/vTOqcJ/0UYPJIif7ri9GYc/wC83P aiwCVf+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tiyoA-0000000FYfD-1fJl; Fri, 14 Feb 2025 16:44:54 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tiymi-0000000FYQM-1lej for linux-arm-kernel@lists.infradead.org; Fri, 14 Feb 2025 16:43:25 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 604A35C4C05; Fri, 14 Feb 2025 16:42:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CEBDC4CED1; Fri, 14 Feb 2025 16:43:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1739551403; bh=nZvXCi+p67k4zNOl9SV+J07JZZJ0CvtmHctG/EhAgfc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=otpRedNLdmkSfIG1ewq3m7jO5EqL/ME7MqTtET8n1HLK3dt4IPmV0p24IycXb+lQU lq7aPURx50WL4kVol7fBVPUTg81g6i2EoNJMhhR/uUL2bWwij82aRsuzPcUtdiBUZy 3o/NO1gxS1dQHxf2w91pdfHFpewi19Xwzk80qNv2pDJmDR+HZir076sz3eidPPHpD7 hCwXDvC4heyobMZk5T4W74zC1q8rholTFsg0aDrVyeR7R5moyRaUvnMBlEF1EThwSV lGKTU9PDFuU9PjarYbohV92EIM6XML2SAFwCfSuAEWHcmnf95Efr4TSmg3x1DID4ZB EEvORoaH5KuQQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1tiymf-0048hO-6A; Fri, 14 Feb 2025 16:43:21 +0000 Date: Fri, 14 Feb 2025 16:43:20 +0000 Message-ID: <86mseoscif.wl-maz@kernel.org> From: Marc Zyngier To: Sebastian Ott Cc: Shameer Kolothum , kvmarm@lists.linux.dev, oliver.upton@linux.dev, catalin.marinas@arm.com, will@kernel.org, mark.rutland@arm.com, cohuck@redhat.com, eric.auger@redhat.com, yuzenghui@huawei.com, wangzhou1@hisilicon.com, jiangkunkun@huawei.com, jonathan.cameron@huawei.com, anthony.jebson@huawei.com, linux-arm-kernel@lists.infradead.org, linuxarm@huawei.com Subject: Re: [PATCH v7 4/5] smccc/kvm_guest: Enable errata based on implementation CPUs In-Reply-To: <10831a79-a21f-dc40-a374-81b300d26dac@redhat.com> References: <20250214151343.61348-1-shameerali.kolothum.thodi@huawei.com> <20250214151343.61348-5-shameerali.kolothum.thodi@huawei.com> <10831a79-a21f-dc40-a374-81b300d26dac@redhat.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.4 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: sebott@redhat.com, shameerali.kolothum.thodi@huawei.com, kvmarm@lists.linux.dev, oliver.upton@linux.dev, catalin.marinas@arm.com, will@kernel.org, mark.rutland@arm.com, cohuck@redhat.com, eric.auger@redhat.com, yuzenghui@huawei.com, wangzhou1@hisilicon.com, jiangkunkun@huawei.com, jonathan.cameron@huawei.com, anthony.jebson@huawei.com, linux-arm-kernel@lists.infradead.org, linuxarm@huawei.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250214_084324_512653_50366F09 X-CRM114-Status: GOOD ( 12.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, 14 Feb 2025 16:12:02 +0000, Sebastian Ott wrote: > > On Fri, 14 Feb 2025, Shameer Kolothum wrote: > > +++ b/arch/arm64/kernel/cpu_errata.c > > @@ -14,6 +14,9 @@ > > #include > > #include > > > > +u32 target_impl_cpu_num; > > +struct target_impl_cpu *target_impl_cpus; > > These should be exported (for configs using > CONFIG_CORESIGHT_SOURCE_ETM4X=m) It might be better to make is_midr_in_range() out of line, and export that. This could allow making the data static (by implementing a couple of additional accessors). Thanks, M. -- Without deviation from the norm, progress is not possible.