lkml.org 
[lkml]   [2022]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] KVM: x86: Make the module parameter of vPMU more common
On Wed, Jan 12, 2022, Like Xu wrote:
> ---
> v1 -> v2 Changelog:
> - prefer we keep "pmu" for the module param; (Sean)

...
> +/* Enable/disable PMU virtualization */
> +bool __read_mostly pmu = true;
> +EXPORT_SYMBOL_GPL(pmu);
> +module_param(pmu, bool, 0444);

Sorry, I should have been more explicit. What I meant was this:

/* Enable/disable PMU virtualization */
bool __read_mostly enable_pmu = true;
module_param_named(pmu, enable_pmu, bool, 0444);

That way KVM can use "enable_pmu" for all its checks, but the user only needs to
type "pmu=?" when manipulating the module param.

\
 
 \ /
  Last update: 2022-01-12 17:21    [W:0.116 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site