arm64: KVM: Add synchronization on translation regime change for erratum 1165522
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 6 Dec 2018 17:31:24 +0000 (17:31 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 10 Dec 2018 11:59:07 +0000 (11:59 +0000)
commit1e4448c5ddbe93ab6070160f094f49e7c95477e6
treed4d0a5499a256327b51ac6cf15ba78d84ff02294
parent8b2cca9ade2c0f1d2ba94e39781e7306c918e544
arm64: KVM: Add synchronization on translation regime change for erratum 1165522

In order to ensure that slipping HCR_EL2.TGE is done at the right
time when switching translation regime, let insert the required ISBs
that will be patched in when erratum 1165522 is detected.

Take this opportunity to add the missing include of asm/alternative.h
which was getting there by pure luck.

Acked-by: Christoffer Dall <christoffer.dall@arm.com>
Reviewed-by: James Morse <james.morse@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/kvm_hyp.h
arch/arm64/kvm/hyp/switch.c