diff options
author | Fuad Tabba <[email protected]> | 2021-10-10 15:56:33 +0100 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2021-10-11 14:57:29 +0100 |
commit | 2a0c343386ae1a6826e1b9d751bfc14f4711c2de (patch) | |
tree | 83c441a60b73d2dab6a0bb865b28c8766d6e2aef /scripts/gcc-plugins/randomize_layout_plugin.c | |
parent | 6c30bfb18d0b7d09593f204c936493cfcd153956 (diff) |
KVM: arm64: Initialize trap registers for protected VMs
Protected VMs have more restricted features that need to be
trapped. Moreover, the host should not be trusted to set the
appropriate trapping registers and their values.
Initialize the trapping registers, i.e., hcr_el2, mdcr_el2, and
cptr_el2 at EL2 for protected guests, based on the values of the
guest's feature id registers.
No functional change intended as trap handlers introduced in the
previous patch are still not hooked in to the guest exit
handlers.
Reviewed-by: Andrew Jones <[email protected]>
Signed-off-by: Fuad Tabba <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions