public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Gautam Menghani <gautam@linux•ibm.com>
To: maddy@linux•ibm.com, npiggin@gmail•com, mpe@ellerman•id.au,
	chleroy@kernel•org, atrajeev@linux•ibm.com
Cc: Gautam Menghani <gautam@linux•ibm.com>,
	linuxppc-dev@lists•ozlabs.org, kvm@vger•kernel.org,
	linux-kernel@vger•kernel.org, stable@vger•kernel.org
Subject: [PATCH v2] KVM: PPC: Kconfig: Enable CONFIG_VPA_PMU with KVM
Date: Mon, 18 May 2026 10:11:49 +0530	[thread overview]
Message-ID: <20260518044150.34632-1-gautam@linux.ibm.com> (raw)

Enable CONFIG_VPA_PMU with KVM to enable its usage. Currently, the
vpa-pmu driver cannot be used since it is not enabled in distro configs.

On fedora kernel 6.13.7, the config option is disabled:
$ cat /boot/config-6.19.12-200.fc43.ppc64le  | grep VPA_PMU
 # CONFIG_VPA_PMU is not set

Fixes: 176cda0619b6c ("powerpc/perf: Add perf interface to expose vpa counters")
Cc: stable@vger•kernel.org # v6.13+
Signed-off-by: Gautam Menghani <gautam@linux•ibm.com>
---
v1 -> v2:
1. Rebased on latest master

 arch/powerpc/kvm/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/powerpc/kvm/Kconfig b/arch/powerpc/kvm/Kconfig
index 9a0d1c1aca6c..56e86b46ff13 100644
--- a/arch/powerpc/kvm/Kconfig
+++ b/arch/powerpc/kvm/Kconfig
@@ -82,6 +82,7 @@ config KVM_BOOK3S_64_HV
 	select KVM_BOOK3S_HV_POSSIBLE
 	select KVM_BOOK3S_HV_PMU
 	select CMA
+	select VPA_PMU if HV_PERF_CTRS
 	help
 	  Support running unmodified book3s_64 guest kernels in
 	  virtual machines on POWER7 and newer processors that have
-- 
2.53.0



             reply	other threads:[~2026-05-18  4:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-18  4:41 Gautam Menghani [this message]
2026-05-19  1:01 ` [PATCH v2] KVM: PPC: Kconfig: Enable CONFIG_VPA_PMU with KVM Sean Christopherson
2026-05-27 16:16   ` Gautam Menghani
2026-05-27 17:40     ` Sean Christopherson
2026-05-26  7:00 ` Harsh Prateek Bora

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260518044150.34632-1-gautam@linux.ibm.com \
    --to=gautam@linux$(echo .)ibm.com \
    --cc=atrajeev@linux$(echo .)ibm.com \
    --cc=chleroy@kernel$(echo .)org \
    --cc=kvm@vger$(echo .)kernel.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linuxppc-dev@lists$(echo .)ozlabs.org \
    --cc=maddy@linux$(echo .)ibm.com \
    --cc=mpe@ellerman$(echo .)id.au \
    --cc=npiggin@gmail$(echo .)com \
    --cc=stable@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox