From: Marc Zyngier <[email protected]>

This patch looks like it should be in the 3.10-stable tree, should we apply
it?

------------------

From: "Marc Zyngier <[email protected]>"

commit 479c5ae2f8a55509b691494cd13691d3dc31d102 upstream

When performing a Stage-2 TLB invalidation, it is necessary to
make sure the write to the page tables is observable by all CPUs.

For this purpose, add a dsb instruction to __kvm_tlb_flush_vmid_ipa
before doing the TLB invalidation itself.

Cc: <[email protected]> # 3.10.x: 6a077e4a: ARM: KVM: perform
Signed-off-by: Marc Zyngier <[email protected]>
Signed-off-by: Christoffer Dall <[email protected]>
Signed-off-by: Jonghwan Choi <[email protected]>
---
 arch/arm/kvm/interrupts.S | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/kvm/interrupts.S b/arch/arm/kvm/interrupts.S
index bc7892ba1..ba904c0 100644
--- a/arch/arm/kvm/interrupts.S
+++ b/arch/arm/kvm/interrupts.S
@@ -46,6 +46,7 @@ __kvm_hyp_code_start:
 ENTRY(__kvm_tlb_flush_vmid)
        push    {r2, r3}
 
+       dsb     ishst
        add     r0, r0, #KVM_VTTBR
        ldrd    r2, r3, [r0]
        mcrr    p15, 6, r2, r3, c2      @ Write VTTBR
-- 
1.8.1.2

--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to