arm-trusted-firmware/services/std_svc
Andre Przywara ea735bf556 refactor(cpufeat): enable FEAT_VHE for FEAT_STATE_CHECKED
At the moment we only support FEAT_VHE to be either unconditionally
compiled in, or to be not supported at all.

Add support for runtime detection (ENABLE_FEAT_VHE=2), by splitting
is_armv8_1_vhe_present() into an ID register reading function and a
second function to report the support status. That function considers
both build time settings and runtime information (if needed), and is
used before we access VHE related registers.
Also move the context saving code from assembly to C, and use the new
is_feat_vhe_supported() function to guard its execution.

Enable VHE in its runtime detection version for all FVP builds.

Change-Id: Ib397cd0c83e8c709bd6fed603560e39901fa672b
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2023-03-20 13:37:37 +00:00
..
drtm feat(drtm): add DRTM parameters structure version check 2022-11-02 23:04:01 +01:00
rmmd build: clarify linker script generation 2023-02-10 17:01:46 +00:00
sdei refactor(cpufeat): enable FEAT_VHE for FEAT_STATE_CHECKED 2023-03-20 13:37:37 +00:00
spm build: always prefix section names with . 2023-02-20 18:29:33 +00:00
spmd feat(spmd): fail safe if SPM fails to initialize 2023-03-09 09:33:28 +01:00
trng refactor(trng): discarding the used entropy bits 2022-11-14 10:08:56 +00:00
pci_svc.c SMCCC/PCI: Handle std svc boilerplate 2021-05-25 14:49:08 +02:00
std_svc_setup.c refactor(trng): cleanup the existing TRNG support 2022-11-08 13:48:18 +00:00