diff options
author | Fuad Tabba <[email protected]> | 2024-10-18 08:48:32 +0100 |
---|---|---|
committer | Oliver Upton <[email protected]> | 2024-10-31 18:45:24 +0000 |
commit | b56680de9c6489f2aed707fad2811e714b52fe4c (patch) | |
tree | 6002468413adb1194fd6018ff61c63d7da9544a2 /scripts/gdb/linux/utils.py | |
parent | cb0c272acebdf099431c34972963377f83872a08 (diff) |
KVM: arm64: Initialize trap register values in hyp in pKVM
Handle the initialization of trap registers at the hypervisor in
pKVM, even for non-protected guests. The host is not trusted with
the values of the trap registers, regardless of the VM type.
Therefore, when switching between the host and the guests, only
flush the HCR_EL2 TWI and TWE bits. The host is allowed to
configure these for opportunistic scheduling, as neither affects
the protection of VMs or the hypervisor.
Reported-by: Will Deacon <[email protected]>
Fixes: 814ad8f96e92 ("KVM: arm64: Drop trapping of PAuth instructions/keys")
Signed-off-by: Fuad Tabba <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions