]> asedeno.scripts.mit.edu Git - linux.git/commit
ARM: KVM: invalidate icache on guest exit for Cortex-A15
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 1 Feb 2018 11:07:38 +0000 (11:07 +0000)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 31 May 2018 10:09:03 +0000 (11:09 +0100)
commit0c47ac8cd157727e7a532d665d6fb1b5fd333977
tree3c2e82a8bfa1eac1f305e05221b61605b76718e8
parent3f7e8e2e1ebda787f156ce46e3f0a9ce2833fa4f
ARM: KVM: invalidate icache on guest exit for Cortex-A15

In order to avoid aliasing attacks against the branch predictor
on Cortex-A15, let's invalidate the BTB on guest exit, which can
only be done by invalidating the icache (with ACTLR[0] being set).

We use the same hack as for A12/A17 to perform the vector decoding.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Boot-tested-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Tony Lindgren <tony@atomide.com>
arch/arm/include/asm/kvm_mmu.h
arch/arm/kvm/hyp/hyp-entry.S