Re: [Xen-devel] [PATCH v2] xen: Make VPMU init message look less scary

2016-08-02 Thread Juergen Gross
On 02/08/16 09:10, Jan Beulich wrote: On 02.08.16 at 08:43, wrote: >> --- a/arch/x86/xen/pmu.c >> +++ b/arch/x86/xen/pmu.c >> @@ -547,8 +547,11 @@ void xen_pmu_init(int cpu) >> return; >> >> fail: >> -pr_info_once("Could not initialize VPMU for cpu %d, error %d\n", >> -

Re: [Xen-devel] [PATCH v2] xen: Make VPMU init message look less scary

2016-08-02 Thread Jan Beulich
>>> On 02.08.16 at 08:43, wrote: > --- a/arch/x86/xen/pmu.c > +++ b/arch/x86/xen/pmu.c > @@ -547,8 +547,11 @@ void xen_pmu_init(int cpu) > return; > > fail: > - pr_info_once("Could not initialize VPMU for cpu %d, error %d\n", > - cpu, err); > + if (err == -EOPNOTSUPP)

[Xen-devel] [PATCH v2] xen: Make VPMU init message look less scary

2016-08-01 Thread Juergen Gross
The default for the Xen hypervisor is to not enable VPMU in order to avoid security issues. In this case the Linux kernel will issue the message "Could not initialize VPMU for cpu 0, error -95" which looks more like an error than a normal state. Change the message to something less scary in case t