aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorMarc Zyngier <[email protected]>2023-10-18 23:32:09 +0000
committerOliver Upton <[email protected]>2023-10-20 17:52:01 +0000
commit4288ff7ba195f49138eec0d9c4ff8c049714e918 (patch)
tree8149edc081a71a6bd216840a914878e59513a0eb /scripts/gcc-plugins/randomize_layout_plugin.c
parentKVM: arm64: Don't zero VTTBR in __tlb_switch_to_host() (diff)
downloadkernel-4288ff7ba195f49138eec0d9c4ff8c049714e918.tar.gz
kernel-4288ff7ba195f49138eec0d9c4ff8c049714e918.zip
KVM: arm64: Restore the stage-2 context in VHE's __tlb_switch_to_host()
An MMU notifier could cause us to clobber the stage-2 context loaded on a CPU when we switch to another VM's context to invalidate. This isn't an issue right now as the stage-2 context gets reloaded on every guest entry, but is disastrous when moving __load_stage2() into the vcpu_load() path. Restore the previous stage-2 context on the way out of a TLB invalidation if we installed something else. Deliberately do this after TGE=1 is synchronized to keep things safe in light of the speculative AT errata. Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions