diff options
| author | Steven Price <steven.price@arm.com> | 2018-08-13 12:04:53 -0400 |
|---|---|---|
| committer | Christoffer Dall <christoffer.dall@arm.com> | 2018-09-07 09:06:03 -0400 |
| commit | df3190e22016abf74ef67c9691e9fa1012a66bd5 (patch) | |
| tree | 68a941d0d0db792d2866f80d99537c73333f34ad | |
| parent | a35381e10dc46dd75e65e4b3832d9a0005d48d44 (diff) | |
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 { | |||
| 61 | u64 vmid_gen; | 61 | u64 vmid_gen; |
| 62 | u32 vmid; | 62 | u32 vmid; |
| 63 | 63 | ||
| 64 | /* 1-level 2nd stage table and lock */ | 64 | /* 1-level 2nd stage table, protected by kvm->mmu_lock */ |
| 65 | spinlock_t pgd_lock; | ||
| 66 | pgd_t *pgd; | 65 | pgd_t *pgd; |
| 67 | 66 | ||
| 68 | /* VTTBR value associated with above pgd and vmid */ | 67 | /* VTTBR value associated with above pgd and vmid */ |
