All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 0/2] ignore LBR-related MSRs
@ 2017-12-06 11:43 ` Jan Dakinevich
  0 siblings, 0 replies; 22+ messages in thread
From: Jan Dakinevich @ 2017-12-06 11:43 UTC (permalink / raw)
  To: linux-kernel
  Cc: Jan Dakinevich, Denis V . Lunev, Roman Kagan, Peter Zijlstra,
	Ingo Molnar, Arnaldo Carvalho de Melo, Alexander Shishkin,
	Jiri Olsa, Namhyung Kim, Thomas Gleixner, H. Peter Anvin, x86,
	Paolo Bonzini, Radim Krčmář,
	Andi Kleen, Kan Liang, Colin King, Stephane Eranian,
	Sebastian Andrzej Siewior, Greg Kroah-Hartman, Jin Yao, kvm

w2k16 essentials fails to boot if underlying hypervisor lacks of support for 
LBR MSRs. To workaround the issue, it suggessted to ignore these MSRs (but not 
all).

The information, which MSRs are supported for specific platform is taken from
perf, it is the subject of the first patch. The second patch adds ignoring for
these MSRs to pmu_intel code of KVM.

TODO: use MSR load/store areas to make full support of LBR debug.

Jan Dakinevich (2):
  perf/x86/intel: make reusable LBR initialization code
  KVM: x86/vPMU: ignore access to LBR-related MSRs

 arch/x86/events/core.c            |   8 +-
 arch/x86/events/intel/core.c      |  59 +++------
 arch/x86/events/intel/lbr.c       | 272 +++++++++++++++++++++++++-------------
 arch/x86/events/perf_event.h      |  27 +---
 arch/x86/include/asm/kvm_host.h   |   2 +
 arch/x86/include/asm/perf_event.h |  11 ++
 arch/x86/kvm/pmu_intel.c          |  33 +++++
 7 files changed, 250 insertions(+), 162 deletions(-)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2017-12-20 16:27 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-06 11:43 [PATCH RFC 0/2] ignore LBR-related MSRs Jan Dakinevich
2017-12-06 11:43 ` Jan Dakinevich
2017-12-06 11:43 ` [PATCH RFC 1/2] perf/x86/intel: make reusable LBR initialization code Jan Dakinevich
2017-12-06 11:43   ` Jan Dakinevich
2017-12-06 12:51   ` Peter Zijlstra
2017-12-06 12:51     ` Peter Zijlstra
2017-12-06 11:43 ` [PATCH RFC 2/2] KVM: x86/vPMU: ignore access to LBR-related MSRs Jan Dakinevich
2017-12-06 11:43   ` Jan Dakinevich
2017-12-06 12:52   ` Peter Zijlstra
2017-12-06 15:57   ` Andi Kleen
2017-12-06 17:02     ` Jan Dakinevich
2017-12-06 17:55       ` Andi Kleen
2017-12-06 15:06 ` [PATCH RFC 0/2] ignore " Konrad Rzeszutek Wilk
2017-12-06 15:06   ` Konrad Rzeszutek Wilk
2017-12-06 16:39   ` Jan Dakinevich
2017-12-06 16:39     ` Jan Dakinevich
2017-12-06 16:45     ` Denis V. Lunev
2017-12-06 16:45       ` Denis V. Lunev
2017-12-06 16:23 ` Jiri Olsa
2017-12-06 16:23   ` Jiri Olsa
2017-12-20 16:26 ` Jan Dakinevich
2017-12-20 16:26   ` Jan Dakinevich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.