]> Git Repo - linux.git/commit
perf/x86/intel/pt: Don't die on VMXON
authorAlexander Shishkin <[email protected]>
Tue, 29 Mar 2016 14:43:10 +0000 (17:43 +0300)
committerIngo Molnar <[email protected]>
Thu, 28 Apr 2016 08:32:42 +0000 (10:32 +0200)
commit1c5ac21a0e9bab7fc45d0ba9e11623e9ad99d02e
treee17bdbe1029aa8ff7a8efa77874947e5b3caa901
parent79c9ce57eb2d5f1497546a3946b4ae21b6fdc438
perf/x86/intel/pt: Don't die on VMXON

Some versions of Intel PT do not support tracing across VMXON, more
specifically, VMXON will clear TraceEn control bit and any attempt to
set it before VMXOFF will throw a #GP, which in the current state of
things will crash the kernel. Namely:

  $ perf record -e intel_pt// kvm -nographic

on such a machine will kill it.

To avoid this, notify the intel_pt driver before VMXON and after
VMXOFF so that it knows when not to enable itself.

Signed-off-by: Alexander Shishkin <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Gleb Natapov <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Vince Weaver <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/events/intel/pt.c
arch/x86/events/intel/pt.h
arch/x86/include/asm/perf_event.h
arch/x86/kvm/vmx.c
This page took 0.057496 seconds and 4 git commands to generate.