From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Dakinevich Subject: Re: [PATCH RFC 0/2] ignore LBR-related MSRs Date: Wed, 20 Dec 2017 19:26:51 +0300 Message-ID: <20171220192651.6063461a@virtuozzo.com> References: <1512560585-27263-1-git-send-email-jan.dakinevich@virtuozzo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "Denis V . Lunev" , Roman Kagan , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Thomas Gleixner , "H. Peter Anvin" , , Paolo Bonzini , Radim =?UTF-8?B?S3LEjW3DocWZ?= , Andi Kleen , Kan Liang , Colin King , Stephane Eranian , Sebastian Andrzej Siewior , Greg Kroah-Hartman , Jin Yao Return-path: In-Reply-To: <1512560585-27263-1-git-send-email-jan.dakinevich@virtuozzo.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Wed, 6 Dec 2017 14:43:01 +0300 Jan Dakinevich wrote: > 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(-) > ping Please, tell me whether these patches are applicable (as KVM workaround) or it is assumed they should be reworked following to recommendation by Andi Kleen? -- Best regards Jan Dakinevich