summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorFuad Tabba <tabba@google.com>2024-10-18 10:48:32 +0300
committerOliver Upton <oliver.upton@linux.dev>2024-10-31 21:45:24 +0300
commitb56680de9c6489f2aed707fad2811e714b52fe4c (patch)
tree6002468413adb1194fd6018ff61c63d7da9544a2 /rust/helpers/helpers.c
parentcb0c272acebdf099431c34972963377f83872a08 (diff)
downloadlinux-b56680de9c6489f2aed707fad2811e714b52fe4c.tar.xz
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 <will@kernel.org> Fixes: 814ad8f96e92 ("KVM: arm64: Drop trapping of PAuth instructions/keys") Signed-off-by: Fuad Tabba <tabba@google.com> Link: https://lore.kernel.org/r/20241018074833.2563674-5-tabba@google.com Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions