]> git.baikalelectronics.ru Git - kernel.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)
committerDavid Vrabel <david.vrabel@citrix.com>
Wed, 24 Aug 2016 17:45:38 +0000 (18:45 +0100)
commitf1f55ac3ccefef961ff47679997e360a2bddf351
treeba55eccab2d0b57c3cffbe5e05b15010994ebfb1
parenta62d53e095571f16148011c8d52d0dd70ea6c21c
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>
arch/x86/xen/pmu.c