aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kvm/mmu.c
diff options
context:
space:
mode:
authorSuzuki K Poulose <suzuki.poulose@arm.com>2016-03-22 17:14:25 +0000
committerChristoffer Dall <christoffer.dall@linaro.org>2016-04-21 14:58:20 +0200
commit8684e701df5a3f52e3ff580128cbd5d71fcd5f5c (patch)
treeb1f86a1a31632bf40618db8dc55e133d85ecd829 /arch/arm/kvm/mmu.c
parentkvm-arm: Add stage2 page table modifiers (diff)
downloadlinux-dev-8684e701df5a3f52e3ff580128cbd5d71fcd5f5c.tar.xz
linux-dev-8684e701df5a3f52e3ff580128cbd5d71fcd5f5c.zip
kvm-arm: Cleanup kvm_* wrappers
Now that we have switched to explicit page table routines, get rid of the obsolete kvm_* wrappers. Also, kvm_tlb_flush_vmid_by_ipa is now called only on stage2 page tables, hence get rid of the redundant check. Cc: Marc Zyngier <marc.zyngier@arm.com> Acked-by: Christoffer Dall <christoffer.dall@linaro.org> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Diffstat (limited to 'arch/arm/kvm/mmu.c')
-rw-r--r--arch/arm/kvm/mmu.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c
index f2a6d9b8ca2d..d3fa96e0f709 100644
--- a/arch/arm/kvm/mmu.c
+++ b/arch/arm/kvm/mmu.c
@@ -66,14 +66,7 @@ void kvm_flush_remote_tlbs(struct kvm *kvm)
static void kvm_tlb_flush_vmid_ipa(struct kvm *kvm, phys_addr_t ipa)
{
- /*
- * This function also gets called when dealing with HYP page
- * tables. As HYP doesn't have an associated struct kvm (and
- * the HYP page tables are fairly static), we don't do
- * anything there.
- */
- if (kvm)
- kvm_call_hyp(__kvm_tlb_flush_vmid_ipa, kvm, ipa);
+ kvm_call_hyp(__kvm_tlb_flush_vmid_ipa, kvm, ipa);
}
/*