diff options
author | Steven Price <steven.price@arm.com> | 2018-08-13 19:04:53 +0300 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@arm.com> | 2018-09-07 16:06:03 +0300 |
commit | df3190e22016abf74ef67c9691e9fa1012a66bd5 (patch) | |
tree | 68a941d0d0db792d2866f80d99537c73333f34ad | |
parent | a35381e10dc46dd75e65e4b3832d9a0005d48d44 (diff) | |
download | linux-df3190e22016abf74ef67c9691e9fa1012a66bd5.tar.xz |
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>
-rw-r--r-- | arch/arm64/include/asm/kvm_host.h | 3 |
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 */ |