summaryrefslogtreecommitdiffstats
path: root/arch/arm64
diff options
context:
space:
mode:
authorSteven Price <steven.price@arm.com>2018-08-13 18:04:53 +0200
committerChristoffer Dall <christoffer.dall@arm.com>2018-09-07 15:06:03 +0200
commitdf3190e22016abf74ef67c9691e9fa1012a66bd5 (patch)
tree68a941d0d0db792d2866f80d99537c73333f34ad /arch/arm64
parentKVM: Remove obsolete kvm_unmap_hva notifier backend (diff)
downloadlinux-df3190e22016abf74ef67c9691e9fa1012a66bd5.tar.xz
linux-df3190e22016abf74ef67c9691e9fa1012a66bd5.zip
arm64: KVM: Remove pgd_lock
The lock has never been used and the page tables are protected by mmu_lock in struct kvm. Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com> Signed-off-by: Steven Price <steven.price@arm.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Christoffer Dall <christoffer.dall@arm.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r--arch/arm64/include/asm/kvm_host.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h
index 8e6d46df38aa..3d6d7336f871 100644
--- a/arch/arm64/include/asm/kvm_host.h
+++ b/arch/arm64/include/asm/kvm_host.h
@@ -61,8 +61,7 @@ struct kvm_arch {
u64 vmid_gen;
u32 vmid;
- /* 1-level 2nd stage table and lock */
- spinlock_t pgd_lock;
+ /* 1-level 2nd stage table, protected by kvm->mmu_lock */
pgd_t *pgd;
/* VTTBR value associated with above pgd and vmid */