Skip to content

Commit df3190e

Browse files
Steven Pricechristofferdall-arm
authored andcommitted
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>
1 parent a35381e commit df3190e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/arm64/include/asm/kvm_host.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ struct kvm_arch {
6161
u64 vmid_gen;
6262
u32 vmid;
6363

64-
/* 1-level 2nd stage table and lock */
65-
spinlock_t pgd_lock;
64+
/* 1-level 2nd stage table, protected by kvm->mmu_lock */
6665
pgd_t *pgd;
6766

6867
/* VTTBR value associated with above pgd and vmid */

0 commit comments

Comments
 (0)