xen/arm: Activate TID3 in HCR_EL2
authorBertrand Marquis <bertrand.marquis@arm.com>
Thu, 17 Dec 2020 15:38:08 +0000 (15:38 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Mon, 4 Jan 2021 19:27:32 +0000 (11:27 -0800)
commit6ea3e32a5e0e6ba0f568aa5fd5a6b016c0c21ca0
tree169c6b26a13371088ca6efb27af7f9730a5ef5f9
parent73ff36144014218f796f7e07c1224a1c580012d1
xen/arm: Activate TID3 in HCR_EL2

Activate TID3 bit in HCR register when starting a guest.
This will trap all coprecessor ID registers so that we can give to guest
values corresponding to what they can actually use and mask some
features to guests even though they would be supported by the underlying
hardware (like SVE or MPAM).

Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/traps.c