Skip to contentSkip to conversation

powerpc/pseries/Kconfig: Enable CONFIG_VPA_PMU to be used with KVM

PATCH Superseded Gautam Menghani 2 participants 2 messages May 29 – May 31

Subsystems (2)

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 powerpc/pseries/Kconfig: Enable CONFIG_VPA_PMU to be used with KVM

Currently, CONFIG_VPA_PMU is not enabled any of the configs, and consequently cannot be used for KVM guests at all.

Mark CONFIG_VPA_PMU as "default m" to ensure it is available when KVM is being used.

Fixes 176cda0619b6c ("powerpc/perf: Add perf interface to expose vpa counters")
Cc [email protected] # v6.13+

---
v2 -> v3:
1. Make CONFIG_VPA_PMU as default m so that it can separately disabled (Sean)

v1 -> v2:
1. Rebased on latest master

 arch/powerpc/platforms/pseries/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/powerpc/platforms/pseries/Kconfig +1 -0
index f7052b131a4c..74910ce3a541 100644
@@ -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.
Signature · 1 line
2.53.0
#1 lore raw
Quoted 1 line · Gautam Menghani

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" ..

Quoted 1 line

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)?

Quoted 3 lines

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.

Quoted 9 lines
Fixes 176cda0619b6c ("powerpc/perf: Add perf interface to expose vpa counters")
Cc [email protected] # v6.13+

---
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

Quoted 19 lines

v1 -> v2:
1. Rebased on latest master

  arch/powerpc/platforms/pseries/Kconfig | 1 +
  1 file changed, 1 insertion(+)
arch/powerpc/platforms/pseries/Kconfig +1 -0
index f7052b131a4c..74910ce3a541 100644
@@ -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.