]> xenbits.xensource.com Git - people/pauldu/xen.git/commit
xen: arm: handle remaining traps from userspace
authorIan Campbell <ian.campbell@citrix.com>
Mon, 30 Mar 2015 11:12:32 +0000 (12:12 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 31 Mar 2015 08:42:53 +0000 (09:42 +0100)
commit90d42bff63e9ce2c33c80b528d19a5bcbbd5ec4a
treeee371a79a8e87298c1dec2ecc33ec3d83c8b68a5
parent63870015972aba7d8877716080d5bc09ce6758d5
xen: arm: handle remaining traps from userspace

CP14 dbg and general CP register access are both handled with
unconditional injection of #undef from their respective handlers, so
allow these even from 32-bit userspace on a 64-bit kernel.

SMC32 and HVC32 should only come from a guest in AArch32 mode and
SMC64 and HVC64 should only come from a guest in AArch64 mode. Add
appropriate BUG_ONs to all cases.

After this bad_trap is no longer used.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Julien Grall <julien.grall@linaro.org>
xen/arch/arm/traps.c