From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794417409; b=b3OC/3Ta5aC/FrV011++0G21OjKGc5mr8dKeB5+YAll3hjzwynpn43jR8//tFyPJhsTJ T2Pz1P8PjOxNma3bP3cd4w4icLWota/Su+/ByZhx/4HX317egpFi9Gu7Pxo5MYtQffAd/ F1eyKp3kqko0v6qbhdzr0s20hNnDo/SUvftuvows7YydcICMCERLhqufacb41FqEcqvoQ sZohwUdXU8PJrscDi4664PpHe7FciMKKvradMzQkI7VcE1c/nbwoYA117Dr4odqJGX2w/ wInls68WoI7pywvCeTfjsp+cUv3y2xj4jOqiXYZxJExpxLuHWipfw/74vejpOkL6K6A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794417409; h=DMARC-Filter:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=2LtHlzenH8P0Let9eUokfApdyyGworpP/r1pDQ+TQU8=; b=Tz0atIs686zXsO20j5m8P+TPh69BMujDSQtCpaEP53OsTzlbzsQncdCE3A+4qHcZCqo+ oJe7riLnWgq/m+5nRSiEXcfjSrCyM1jpN+9d+lx69uA+/+QD+3VORNqoWwDY0kCX3kBr/ D45pt/xxuYJSKNos4oFOPJD8c+V+RJlMV4dNmdXItMvPbpNFlcaAqbnCKqPiZMwMguaTh mCGvLsFBSCAiE14BCfGrTXJB9C3d09Auy8HNnO330HniXPvbT3ccpUSHLJa0xmyQY+3cN ODZ4VjsnIQvU5g/DeItGxXGQm7YiQLqTmNm5JMWwNm5+JvjQiP76YKAdegorxP6xAcA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=kFzskHgB; arc=none smtp.remote-ip=217.140.110.172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 771CD606A327 for ; Wed, 11 Nov 2026 17:16:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 771CD606A327 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=kFzskHgB Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BDCE6339; Wed, 11 Nov 2026 09:16:45 -0800 (PST) Received: from raptor (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D4B2D3F632; Wed, 11 Nov 2026 09:16:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1794417408; bh=I5J2kVvdKW4OqPmoJ/nQAip3vlK/SWhiWTZU2FsT3FI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kFzskHgBfJ2MED+UEtFv80JX+XpZT8ayy4tQXWR1Bkb8jNcjKtwWklLBsjqzy2EW2 WxBRsR3lK17xRh29ko6PvPw39RRBOceP94t6lHLkMTWvzQvje1GggtxXs6JrwOlJ/U S2CHp4colJHqGlGTbLxoduOpLbJVoQXP3Q9PKwQM= Date: Wed, 11 Nov 2026 17:16:37 +0000 From: Alexandru Elisei To: "Lorenzo Stoakes (ARM)" Cc: maz@kernel.org, oupton@kernel.org, fuad.tabba@linux.dev, joey.gouly@arm.com, seiden@linux.ibm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, will@kernel.org, mark.rutland@arm.com, linux-perf-users@vger.kernel.org, catalin.marinas@arm.com, james.clark@linaro.org Subject: Re: [RFC PATCH v7 03/28] KVM: arm64: Add CONFIG_KVM_ARM_SPE Kconfig option Message-ID: References: <20260903160623.315525-1-alexandru.elisei@arm.com> <20260903160623.315525-4-alexandru.elisei@arm.com> X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi, On Thu, Oct 15, 2026 at 03:15:18PM +0100, Lorenzo Stoakes (ARM) wrote: > On Thu, Sep 03, 2026 at 05:05:58PM +0100, Alexandru Elisei wrote: > > Add a new configuration option that will be used for KVM SPE emulation. > > CONFIG_KVM_ARM_SPE depends on the SPE driver being loaded because: > > > > 1. The SPE driver maintains a cpumask of physical CPUs that support SPE, > > and that will be used by KVM to emulate SPE on heterogeneous systems. > > I guess e.g. big.LITTLE? That's the marketing term for it, yes. > > > > > 2. KVM will rely on the SPE driver enabling the SPE interrupt at the GIC > > level. > > > > The option will become user selectable after SPE support in KVM is > > implemented. > > > > Signed-off-by: Alexandru Elisei > > With nit addressed the redundant dependency removed (both noted below), > LGTM and: > > Reviewed-by: Lorenzo Stoakes (ARM) > > > --- > > arch/arm64/kvm/Kconfig | 9 +++++++++ > > 1 file changed, 9 insertions(+) > > > > diff --git a/arch/arm64/kvm/Kconfig b/arch/arm64/kvm/Kconfig > > index 449154f9a485..fece4c02b97c 100644 > > --- a/arch/arm64/kvm/Kconfig > > +++ b/arch/arm64/kvm/Kconfig > > @@ -103,5 +103,14 @@ config PKVM_STACKTRACE > > If unsure, or not using protected nVHE (pKVM), say N. > > > > endif # NVHE_EL2_DEBUG > > + > > +config KVM_ARM_SPE > > NIT: Nothing else in the file has the _ARM_ prefix, so is that redundant > here? I add the capability KVM_CAP_ARM_SPE later, so I would rather keep the config name KVM_ARM_SPE so the two align? > > > + bool > > + depends on KVM && ARM_SPE_PMU > > I think KVM should be removed here, this is within an 'if KVM' block > already, and nothing else here depends on it either so not a convention. Removed the explicit dependency on KVM. Thanks, Alex > > > + default n > > + help > > + Adds support for Statistical Profiling Extension (SPE) in virtual > > + machines. > > + > > endif # KVM > > endif # VIRTUALIZATION > > -- > > 2.43.0 > > > > > > -- > Cheers, Lorenzo