]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86: Disable uncore on virtualized CPUs
authorYan, Zheng <zheng.z.yan@intel.com>
Tue, 21 Aug 2012 09:08:37 +0000 (17:08 +0800)
committerIngo Molnar <mingo@kernel.org>
Sat, 20 Oct 2012 08:07:02 +0000 (10:07 +0200)
commit5212d7110eecc5a0394e8c4f5d2dcfd2aea6525d
tree4005c7e92db9aea00358e69d3e1c5a3db24843e9
parente5d326ae597285a8b4ac38cf006848d951de8e4c
perf/x86: Disable uncore on virtualized CPUs

Initializing uncore PMU on virtualized CPU may hang the kernel.
This is because kvm does not emulate the entire hardware. Thers
are lots of uncore related MSRs, making kvm enumerate them all
is a non-trival task. So just disable uncore on virtualized CPU.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Tested-by: Pekka Enberg <penberg@kernel.org>
Cc: a.p.zijlstra@chello.nl
Cc: eranian@google.com
Cc: andi@firstfloor.org
Cc: avi@redhat.com
Link: http://lkml.kernel.org/r/1345540117-14164-1-git-send-email-zheng.z.yan@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel_uncore.c