mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
kvm: arm/arm64: Force reading uncached stage2 PGD
Make sure we don't use a cached value of the KVM stage2 PGD while resetting the PGD. Cc: Marc Zyngier <[email protected]> Cc: [email protected] Signed-off-by: Suzuki K Poulose <[email protected]> Reviewed-by: Christoffer Dall <[email protected]> Signed-off-by: Christoffer Dall <[email protected]>
This commit is contained in:
parent
9b619a8f08
commit
2952a6070e
1 changed files with 1 additions and 1 deletions
|
|
@ -837,7 +837,7 @@ void kvm_free_stage2_pgd(struct kvm *kvm)
|
|||
spin_lock(&kvm->mmu_lock);
|
||||
if (kvm->arch.pgd) {
|
||||
unmap_stage2_range(kvm, 0, KVM_PHYS_SIZE);
|
||||
pgd = kvm->arch.pgd;
|
||||
pgd = READ_ONCE(kvm->arch.pgd);
|
||||
kvm->arch.pgd = NULL;
|
||||
}
|
||||
spin_unlock(&kvm->mmu_lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue