From: Harsh Prateek Bora <harshpb@linux.ibm.com>
To: Gautam Menghani <gautam@linux.ibm.com>,
maddy@linux.ibm.com, mpe@ellerman.id.au, npiggin@gmail.com,
chleroy@kernel.org
Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org,
atrajeev@linux.ibm.com, stable@vger.kernel.org,
Sean Christopherson <seanjc@google.com>
Subject: Re: [PATCH v3] powerpc/pseries/Kconfig: Enable CONFIG_VPA_PMU to be used with KVM
Date: Sun, 31 May 2026 22:19:35 +0530 [thread overview]
Message-ID: <47846f02-ba17-4a45-9bbc-550ba15ffd87@linux.ibm.com> (raw)
In-Reply-To: <20260529141032.69559-1-gautam@linux.ibm.com>
On 29/05/26 7:40 pm, Gautam Menghani wrote:
> Currently, CONFIG_VPA_PMU is not enabled any of the configs, and
Not sure what is meant by "any of the configs" , distros ?
We could just say "not enabled by default" ..
> consequently cannot be used for KVM guests at all.
.. consequently cannot be used for KVM guests unless explicitly enabled
on host kernel (which is currently ignored by distro configs)?
>
> Mark CONFIG_VPA_PMU as "default m" to ensure it is available when KVM is
> being used.
I think title could have been rephrased to focus on "default m" enablement.
>
> Fixes: 176cda0619b6c ("powerpc/perf: Add perf interface to expose vpa counters")
> Cc: stable@vger.kernel.org # v6.13+
> Suggested-by: Sean Christopherson <seanjc@google.com>
> Signed-off-by: Gautam Menghani <gautam@linux.ibm.com>
> ---
> v2 -> v3:
> 1. Make CONFIG_VPA_PMU as default m so that it can separately disabled
> (Sean)
This indeed is more appropriate way for enablement, thanks Sean!
regards,
Harsh
>
> v1 -> v2:
> 1. Rebased on latest master
>
> arch/powerpc/platforms/pseries/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/powerpc/platforms/pseries/Kconfig b/arch/powerpc/platforms/pseries/Kconfig
> index f7052b131a4c..74910ce3a541 100644
> --- a/arch/powerpc/platforms/pseries/Kconfig
> +++ b/arch/powerpc/platforms/pseries/Kconfig
> @@ -154,6 +154,7 @@ config HV_PERF_CTRS
> config VPA_PMU
> tristate "VPA PMU events"
> depends on KVM_BOOK3S_64_HV && HV_PERF_CTRS
> + default m
> help
> Enable access to the VPA PMU counters via perf. This enables
> code that support measurement for KVM on PowerVM(KoP) feature.
prev parent reply other threads:[~2026-05-31 16:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-29 14:10 [PATCH v3] powerpc/pseries/Kconfig: Enable CONFIG_VPA_PMU to be used with KVM Gautam Menghani
2026-05-31 16:49 ` Harsh Prateek Bora [this message]
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=47846f02-ba17-4a45-9bbc-550ba15ffd87@linux.ibm.com \
--to=harshpb@linux.ibm.com \
--cc=atrajeev@linux.ibm.com \
--cc=chleroy@kernel.org \
--cc=gautam@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.ibm.com \
--cc=mpe@ellerman.id.au \
--cc=npiggin@gmail.com \
--cc=seanjc@google.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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