Commit b38e7b1a authored by Fuad Tabba's avatar Fuad Tabba
Browse files

UPSTREAM: KVM: arm64: Handle HAFGRTR_EL2 trapping in nested virt



Add the encodings to fine grain trapping fields for HAFGRTR_EL2
and add the associated handling code in nested virt. Based on
DDI0601 2023-09. Add the missing field definitions as well,
both to generate the correct RES0 mask and to be able to toggle
their FGT bits.

Also add the code for handling FGT trapping, reading of the
register, to nested virt.

Reviewed-by: default avatarMark Brown <broonie@kernel.org>
Bug: 278749606
Change-Id: Id2016d9ebf0da8d2e873967140dd0faace025690
Signed-off-by: default avatarFuad Tabba <tabba@google.com>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20231214100158.2305400-10-tabba@google.com
(cherry picked from commit 676f4823)
parent 168186e4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment