Revision c9b08884c9c98929ec2d8abafd78e89062d01ee7 authored by Peter Zijlstra on 03 February 2014, 13:29:03 UTC, committed by Thomas Gleixner on 21 February 2014, 21:09:01 UTC
The current code simply assumes Intel Arch PerfMon v2+ to have the IA32_PERF_CAPABILITIES MSR; the SDM specifies that we should check CPUID[1].ECX[15] (aka, FEATURE_PDCM) instead. This was found by KVM which implements v2+ but didn't provide the capabilities MSR. Change the code to DTRT; KVM will also implement the MSR and return 0. Cc: pbonzini@redhat.com Reported-by: "Michael S. Tsirkin" <mst@redhat.com> Suggested-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20140203132903.GI8874@twins.programming.kicks-ass.net Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent a3ef222
File | Mode | Size |
---|---|---|
power | ||
regmap | ||
Kconfig | -rw-r--r-- | 9.8 KB |
Makefile | -rw-r--r-- | 880 bytes |
attribute_container.c | -rw-r--r-- | 12.0 KB |
base.h | -rw-r--r-- | 5.2 KB |
bus.c | -rw-r--r-- | 31.5 KB |
class.c | -rw-r--r-- | 14.9 KB |
core.c | -rw-r--r-- | 55.1 KB |
cpu.c | -rw-r--r-- | 9.4 KB |
dd.c | -rw-r--r-- | 15.7 KB |
devres.c | -rw-r--r-- | 20.2 KB |
devtmpfs.c | -rw-r--r-- | 9.0 KB |
dma-buf.c | -rw-r--r-- | 18.4 KB |
dma-coherent.c | -rw-r--r-- | 5.9 KB |
dma-contiguous.c | -rw-r--r-- | 9.3 KB |
dma-mapping.c | -rw-r--r-- | 6.6 KB |
driver.c | -rw-r--r-- | 5.6 KB |
firmware.c | -rw-r--r-- | 614 bytes |
firmware_class.c | -rw-r--r-- | 37.6 KB |
hypervisor.c | -rw-r--r-- | 544 bytes |
init.c | -rw-r--r-- | 714 bytes |
isa.c | -rw-r--r-- | 3.7 KB |
map.c | -rw-r--r-- | 3.3 KB |
memory.c | -rw-r--r-- | 17.7 KB |
module.c | -rw-r--r-- | 1.9 KB |
node.c | -rw-r--r-- | 18.5 KB |
pinctrl.c | -rw-r--r-- | 2.2 KB |
platform.c | -rw-r--r-- | 30.6 KB |
reservation.c | -rw-r--r-- | 1.6 KB |
soc.c | -rw-r--r-- | 4.1 KB |
syscore.c | -rw-r--r-- | 3.0 KB |
topology.c | -rw-r--r-- | 4.6 KB |
transport_class.c | -rw-r--r-- | 9.4 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...