Skip to contentSkip to conversation

Patch "arm64: KVM: Fix TLB invalidation by IPA/VMID" has been added to the 3.14-stable tree

PATCH [email protected] 1 participant 1 message Jul 8, 2015

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

arm64: KVM: Fix TLB invalidation by IPA/VMID

to the 3.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
arm64-kvm-fix-tlb-invalidation-by-ipa-vmid.patch
and it can be found in the queue-3.14 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 55e858b75808347378e5117c3c2339f46cc03575 Mon Sep 17 00:00:00 2001

From: Marc Zyngier <[email protected]>
Date: Sun, 11 Jan 2015 14:10:10 +0100
Subject: arm64: KVM: Fix TLB invalidation by IPA/VMID

From: Marc Zyngier <[email protected]>

commit 55e858b75808347378e5117c3c2339f46cc03575 upstream.

It took about two years for someone to notice that the IPA passed to TLBI IPAS2E1IS must be shifted by 12 bits. Clearly our reviewing is not as good as it should be...

Paper bag time for me.

---
 arch/arm64/kvm/hyp.S |    1 +
 1 file changed, 1 insertion(+)
arch/arm64/kvm/hyp.S +1 -0
@@ -629,6 +629,7 @@ ENTRY(__kvm_tlb_flush_vmid_ipa)
 	 * Instead, we invalidate Stage-2 for this IPA, and the
 	 * whole of Stage-1. Weep...
 	 */
+	lsr	x1, x1, #12
 	tlbi	ipas2e1is, x1
 	/*
 	 * We have to ensure completion of the invalidation at Stage-2,

Patches currently in stable-queue which might be from [email protected] are

queue-3.14/arm64-kvm-fix-hcr-setting-for-32bit-guests.patch queue-3.14/arm64-kvm-do-not-use-pgd_index-to-index-stage-2-pgd.patch queue-3.14/arm64-kvm-fix-tlb-invalidation-by-ipa-vmid.patch queue-3.14/arm-arm64-kvm-keep-elrsr-aisr-in-sync-with-software-model.patch queue-3.14/arm-arm64-kvm-require-in-kernel-vgic-for-the-arch-timers.patch queue-3.14/arm-kvm-force-execution-of-hcptr-access-on-vm-exit.patch