arm64: hw_breakpoint: Allow EL2 breakpoints if running in HYP
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 25 Jan 2016 18:50:12 +0000 (18:50 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 29 Feb 2016 18:34:18 +0000 (18:34 +0000)
commitae7e27fe6834d4a78fd8e4576a8e1dd15ae0c008
tree822553a0d34199e089ad4b5a188d4c9e0eb3a7ac
parentd98ecdaca296815b3c4d11032b3699af6b49b70b
arm64: hw_breakpoint: Allow EL2 breakpoints if running in HYP

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.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/include/asm/hw_breakpoint.h