Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp555149pxb; Wed, 25 Aug 2021 09:20:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRVdYph67Uop+QG/G3yVNINGTHF2UP+qbc/7WUJnOy205ARYmPneD+CTheQoE/8TJYvRni X-Received: by 2002:a17:906:a0ce:: with SMTP id bh14mr45490616ejb.434.1629908405456; Wed, 25 Aug 2021 09:20:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629908405; cv=none; d=google.com; s=arc-20160816; b=VWRApvXBynnkYci3b7IEJM2Vq+KM5l8y4xYfDA1WJ3U12krNNc6Ke/z94CHNHR/stM HC1+DdTbQgdhu/8Fzerq28RLVVISDCx3YG0usBaby+fo7rmEDZwiX5ZqXYae6XlJXgFf SNI5uHU2M9bU4PNU1g27yjhWNMYPXcFTYhHFv25ptXALy1hngAkNez4Li9ttI6MaLcBc k+62wolfPqUHWzFzWfauTePEn9OiA1yjTLGONFaH55U9+cy2sYv8XfdE2PqR/dw5Cvbv RTeZmEJr/cBXVBG4CSY2XRHaT1FzjfF+OZvtaIoyt7z85kwjpMRnJLKJ8PIhw18QYVkG kftw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=eRvHot3+xqHwkPRLzauJFszUraHOTbHXJbZAl1R5zVQ=; b=QJcVIqO1AYMbIz7yEx7DaE4D6ZBa3m7F751dlLUi8dCeCMPmf0jEAYKEkkqF1Ipd0M tf/FW3SLBw4L1hipuVFZrYOs+0VTD/ZvNONPpXdRLfENy0N8WQilpV8GRhSLiFztmjp4 rlaaff0ESdd3W2UTV6DV/gFmA0UXXsn1lkcPwaFeEDKBRgR37YZPZOf1uV+saXmUCm/Y KJWYiKM9QlWUPC0VInwklTvNiyt4c50F6kEFked0R9Psn8bFMJKlpQmltPtDyjqZUd59 lZs7Jwr2g7EeEw4sDdlidV02bNtPBy7j66cCy0PIObl3MwSkWa+1bIcXN4SgwJtREvS3 d1fg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kl24si213912ejc.190.2021.08.25.09.19.40; Wed, 25 Aug 2021 09:20:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241302AbhHYQSi (ORCPT + 99 others); Wed, 25 Aug 2021 12:18:38 -0400 Received: from foss.arm.com ([217.140.110.172]:54748 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240493AbhHYQSV (ORCPT ); Wed, 25 Aug 2021 12:18:21 -0400 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 0EFA81042; Wed, 25 Aug 2021 09:17:33 -0700 (PDT) Received: from monolith.cable.virginm.net (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B48FB3F66F; Wed, 25 Aug 2021 09:17:31 -0700 (PDT) From: Alexandru Elisei To: maz@kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, will@kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH v4 13/39] KVM: arm64: Add CONFIG_KVM_ARM_SPE Kconfig option Date: Wed, 25 Aug 2021 17:17:49 +0100 Message-Id: <20210825161815.266051-14-alexandru.elisei@arm.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210825161815.266051-1-alexandru.elisei@arm.com> References: <20210825161815.266051-1-alexandru.elisei@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a new configuration option that will be used for KVM SPE emulation. CONFIG_KVM_ARM_SPE depends on the SPE driver being builtin because: 1. The cpumask of physical CPUs that support SPE will be used by KVM to emulate SPE on heterogeneous systems. 2. KVM will rely on the SPE driver enabling the SPE interrupt at the GIC level. Signed-off-by: Alexandru Elisei --- arch/arm64/kvm/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/kvm/Kconfig b/arch/arm64/kvm/Kconfig index a4eba0908bfa..c6ad5a05efb3 100644 --- a/arch/arm64/kvm/Kconfig +++ b/arch/arm64/kvm/Kconfig @@ -46,6 +46,14 @@ if KVM source "virt/kvm/Kconfig" +config KVM_ARM_SPE + bool "Virtual Statistical Profiling Extension (SPE) support" + depends on ARM_SPE_PMU=y + default y + help + Adds support for Statistical Profiling Extension (SPE) in virtual + machines. + endif # KVM endif # VIRTUALIZATION -- 2.33.0