summaryrefslogtreecommitdiff
path: root/mm/huge_memory.c
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2014-02-03 14:29:03 +0100
committerJiri Slaby <jslaby@suse.cz>2015-01-10 12:40:17 +0100
commit05d75f8aa3a9227b5180354671dff77c9a72d0bf (patch)
tree848f6d23473d2b8cd2a20bca230dd3ee6b4107f1 /mm/huge_memory.c
parente1c34dac913e87ee8d03c06d7a328a7c2137cafb (diff)
perf/x86: Correctly use FEATURE_PDCM
commit c9b08884c9c98929ec2d8abafd78e89062d01ee7 upstream. 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> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'mm/huge_memory.c')
0 files changed, 0 insertions, 0 deletions