Re: [PATCH v2 05/13] perf: Force architectures to opt-in to guest callbacks

2021-09-21 Thread Sean Christopherson
On Tue, Sep 21, 2021, Paolo Bonzini wrote: > On 28/08/21 21:47, Peter Zijlstra wrote: > > > +config HAVE_GUEST_PERF_EVENTS > > > + bool > > depends on HAVE_KVM > > It won't really do anything, since Kconfig does not detects conflicts > between select' and 'depends on' clauses. It does throw

Re: [PATCH v2 05/13] perf: Force architectures to opt-in to guest callbacks

2021-09-21 Thread Paolo Bonzini
On 28/08/21 21:47, Peter Zijlstra wrote: +config HAVE_GUEST_PERF_EVENTS + bool depends on HAVE_KVM It won't really do anything, since Kconfig does not detects conflicts between select' and 'depends on' clauses. Rather, should the symbol be selected by KVM, instead of ARM64

Re: [PATCH v2 05/13] perf: Force architectures to opt-in to guest callbacks

2021-09-16 Thread Sean Christopherson
On Sat, Aug 28, 2021, Peter Zijlstra wrote: > On Fri, Aug 27, 2021 at 05:35:50PM -0700, Sean Christopherson wrote: > > diff --git a/init/Kconfig b/init/Kconfig > > index 55f9f7738ebb..9ef51ae53977 100644 > > --- a/init/Kconfig > > +++ b/init/Kconfig > > @@ -1776,6 +1776,9 @@ config

Re: [PATCH v2 05/13] perf: Force architectures to opt-in to guest callbacks

2021-08-28 Thread Peter Zijlstra
On Fri, Aug 27, 2021 at 05:35:50PM -0700, Sean Christopherson wrote: > diff --git a/init/Kconfig b/init/Kconfig > index 55f9f7738ebb..9ef51ae53977 100644 > --- a/init/Kconfig > +++ b/init/Kconfig > @@ -1776,6 +1776,9 @@ config HAVE_PERF_EVENTS > help > See tools/perf/design.txt for

[PATCH v2 05/13] perf: Force architectures to opt-in to guest callbacks

2021-08-27 Thread Sean Christopherson
Introduce HAVE_GUEST_PERF_EVENTS and require architectures to select it to allow registering guest callbacks in perf. Future patches will convert the callbacks to static_call. Rather than churn a bunch of arch code (that was presumably copy+pasted from x86), remove it wholesale as it's useless