summaryrefslogtreecommitdiff
path: root/arch/arm64/kvm/hyp/switch.c
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2019-07-30 12:50:38 +0300
committerMarc Zyngier <maz@kernel.org>2019-10-26 12:43:53 +0300
commit37553941c670c3ad160b25843e6cdcbee2b3c6eb (patch)
tree00fb402c79f8be22175a38bcb6fcd7c072d08a5a /arch/arm64/kvm/hyp/switch.c
parent1d8cd06af548bb1ba29e16eec78c0862e799a731 (diff)
downloadlinux-37553941c670c3ad160b25843e6cdcbee2b3c6eb.tar.xz
arm64: KVM: Disable EL1 PTW when invalidating S2 TLBs
When erratum 1319367 is being worked around, special care must be taken not to allow the page table walker to populate TLBs while we have the stage-2 translation enabled (which would otherwise result in a bizare mix of the host S1 and the guest S2). We enforce this by setting TCR_EL1.EPD{0,1} before restoring the S2 configuration, and clear the same bits after having disabled S2. Reviewed-by: James Morse <james.morse@arm.com> Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/arm64/kvm/hyp/switch.c')
0 files changed, 0 insertions, 0 deletions