]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3ffe1052ab89ee4ff5d2386a4432979effda728d
treed4d0a5499a256327b51ac6cf15ba78d84ff02294
parent80247d81e5d358eabaa3316b6455590fbe2cf584
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