xen/arm: Introduce helpers to clear/flags flags in HCR_EL2
authorJulien Grall <julien.grall@arm.com>
Wed, 21 Feb 2018 14:18:44 +0000 (14:18 +0000)
committerJulien Grall <julien.grall@arm.com>
Wed, 12 Dec 2018 15:48:46 +0000 (15:48 +0000)
commitf5613b83311fba8986014ee5714f6ebc8b74fc68
tree968694ef76ed2661e58570035019c9a523306cd8
parenta9c904c5a827144eb722cfb46634c60b739e19eb
xen/arm: Introduce helpers to clear/flags flags in HCR_EL2

A couple of places in the code will need to clear/set flags in HCR_EL2
for a given vCPU and then replicate into the hardware. Introduce
helpers and replace open-coded version.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/traps.c
xen/include/asm-arm/processor.h