]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: Make VPMU init message look less scary
authorJuergen Gross <jgross@suse.com>
Tue, 2 Aug 2016 07:22:12 +0000 (09:22 +0200)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Fri, 3 Feb 2017 20:55:24 +0000 (15:55 -0500)
commit5492365bfaca1695f6c3ea6a753935ddcbe0ebe7
tree09fb4b819567ac6ad64cd30c045088f6183beef6
parentac7dc9538ec8731adb0f6f190f9f6632174ff2cd
xen: Make VPMU init message look less scary

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 the hypervisor
returns EOPNOTSUPP or ENOSYS when trying to activate VPMU.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
OraBug: 25497392

(cherry picked from commit 0252937a87e1d46a8261da85cbd99dffe612a2d3)
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
arch/x86/xen/pmu.c