Re: [PATCH v3 4/8] arm64: Fix interrupt tracing in the presence of NMIs

2019-06-07 Thread Julien Thierry
On 07/06/2019 16:42, Marc Zyngier wrote: > On 06/06/2019 10:31, Julien Thierry wrote: >> In the presence of any form of instrumentation, nmi_enter() should be >> done before calling any traceable code and any instrumentation code. >> >> Currently, nmi_enter() is done in handle_domain_nmi(), whic

Re: [PATCH v3 4/8] arm64: Fix interrupt tracing in the presence of NMIs

2019-06-07 Thread Marc Zyngier
On 06/06/2019 10:31, Julien Thierry wrote: > In the presence of any form of instrumentation, nmi_enter() should be > done before calling any traceable code and any instrumentation code. > > Currently, nmi_enter() is done in handle_domain_nmi(), which is much > too late as instrumentation code migh

[PATCH v3 4/8] arm64: Fix interrupt tracing in the presence of NMIs

2019-06-06 Thread Julien Thierry
In the presence of any form of instrumentation, nmi_enter() should be done before calling any traceable code and any instrumentation code. Currently, nmi_enter() is done in handle_domain_nmi(), which is much too late as instrumentation code might get called before. Move the nmi_enter/exit() calls