Re: [PATCH v4 21/23] arm64: hw_breakpoint: Allow EL2 breakpoints if running in HYP

2016-02-16 Thread Marc Zyngier
On 15/02/16 19:07, Will Deacon wrote: > On Mon, Feb 15, 2016 at 05:46:56PM +, Will Deacon wrote: >> On Thu, Feb 11, 2016 at 06:40:02PM +, Marc Zyngier wrote: >>> With VHE, we place kernel {watch,break}-points at EL2 to get things >>> like kgdb and "perf -e mem:..." working. >>> >>> This

Re: [PATCH v4 21/23] arm64: hw_breakpoint: Allow EL2 breakpoints if running in HYP

2016-02-16 Thread Marc Zyngier
On 15/02/16 19:07, Will Deacon wrote: > On Mon, Feb 15, 2016 at 05:46:56PM +, Will Deacon wrote: >> On Thu, Feb 11, 2016 at 06:40:02PM +, Marc Zyngier wrote: >>> With VHE, we place kernel {watch,break}-points at EL2 to get things >>> like kgdb and "perf -e mem:..." working. >>> >>> This

Re: [PATCH v4 21/23] arm64: hw_breakpoint: Allow EL2 breakpoints if running in HYP

2016-02-15 Thread Will Deacon
On Mon, Feb 15, 2016 at 05:46:56PM +, Will Deacon wrote: > On Thu, Feb 11, 2016 at 06:40:02PM +, Marc Zyngier wrote: > > With VHE, we place kernel {watch,break}-points at EL2 to get things > > like kgdb and "perf -e mem:..." working. > > > > This requires a bit of repainting in the

Re: [PATCH v4 21/23] arm64: hw_breakpoint: Allow EL2 breakpoints if running in HYP

2016-02-15 Thread Will Deacon
On Mon, Feb 15, 2016 at 05:46:56PM +, Will Deacon wrote: > On Thu, Feb 11, 2016 at 06:40:02PM +, Marc Zyngier wrote: > > With VHE, we place kernel {watch,break}-points at EL2 to get things > > like kgdb and "perf -e mem:..." working. > > > > This requires a bit of repainting in the

Re: [PATCH v4 21/23] arm64: hw_breakpoint: Allow EL2 breakpoints if running in HYP

2016-02-15 Thread Will Deacon
On Thu, Feb 11, 2016 at 06:40:02PM +, Marc Zyngier wrote: > With VHE, we place kernel {watch,break}-points at EL2 to get things > like kgdb and "perf -e mem:..." working. > > This requires a bit of repainting in the low-level encore/decode, > but is otherwise pretty simple. > >

Re: [PATCH v4 21/23] arm64: hw_breakpoint: Allow EL2 breakpoints if running in HYP

2016-02-15 Thread Will Deacon
On Thu, Feb 11, 2016 at 06:40:02PM +, Marc Zyngier wrote: > With VHE, we place kernel {watch,break}-points at EL2 to get things > like kgdb and "perf -e mem:..." working. > > This requires a bit of repainting in the low-level encore/decode, > but is otherwise pretty simple. > >

Re: [PATCH v4 21/23] arm64: hw_breakpoint: Allow EL2 breakpoints if running in HYP

2016-02-15 Thread Catalin Marinas
On Thu, Feb 11, 2016 at 06:40:02PM +, Marc Zyngier wrote: > With VHE, we place kernel {watch,break}-points at EL2 to get things > like kgdb and "perf -e mem:..." working. > > This requires a bit of repainting in the low-level encore/decode, > but is otherwise pretty simple. > >

Re: [PATCH v4 21/23] arm64: hw_breakpoint: Allow EL2 breakpoints if running in HYP

2016-02-15 Thread Catalin Marinas
On Thu, Feb 11, 2016 at 06:40:02PM +, Marc Zyngier wrote: > With VHE, we place kernel {watch,break}-points at EL2 to get things > like kgdb and "perf -e mem:..." working. > > This requires a bit of repainting in the low-level encore/decode, > but is otherwise pretty simple. > >

[PATCH v4 21/23] arm64: hw_breakpoint: Allow EL2 breakpoints if running in HYP

2016-02-11 Thread Marc Zyngier
With VHE, we place kernel {watch,break}-points at EL2 to get things like kgdb and "perf -e mem:..." working. This requires a bit of repainting in the low-level encore/decode, but is otherwise pretty simple. Signed-off-by: Marc Zyngier --- arch/arm64/include/asm/hw_breakpoint.h | 49

[PATCH v4 21/23] arm64: hw_breakpoint: Allow EL2 breakpoints if running in HYP

2016-02-11 Thread Marc Zyngier
With VHE, we place kernel {watch,break}-points at EL2 to get things like kgdb and "perf -e mem:..." working. This requires a bit of repainting in the low-level encore/decode, but is otherwise pretty simple. Signed-off-by: Marc Zyngier ---