xen/arm: Implement a dummy debug monitor for ARM32
authorJulien Grall <julien.grall@linaro.org>
Thu, 24 Apr 2014 22:45:55 +0000 (23:45 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 13 Jun 2014 11:40:59 +0000 (12:40 +0100)
commit68c69978352adb5ab7c06598056f9eb88d7d6031
tree600a4db4c6af921a8bb1f32e0628d16501f84e02
parentaa0d443718372b46c432af7cb6274050cda32fc6
xen/arm: Implement a dummy debug monitor for ARM32

XSA-93 (commit 0b18220 "xen/arm: Don't let guess access to Debug and Performance
Monitors registers") disable Debug Registers access.

When CONFIG_PERF_EVENTS is enabled in the Linux Kernel, it will try to
initialize the debug monitors. If an error occured Linux won't use this
feature.

The implementation made Xen expose a minimal set of registers which let think
the guest (i.e.) thinks HW debug won't work.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
[ ijc -- s/DBGCR/DBGBCR/ to use correct register name ]
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/traps.c
xen/include/asm-arm/cpregs.h