Skip to content

Commit 20228df

Browse files
committed
Revert "KVM: PPC: e500: Mark "struct page" pfn accessed before dropping mmu_lock"
This reverts commit d200457 which is commit 84cf78dcd9d65c45ab73998d4ad50f433d53fb93 upstream. It should not have been applied. Link: https://lore.kernel.org/r/CABgObfb5U9zwTQBPkPB=mKu-vMrRspPCm4wfxoQpB+SyAnb5WQ@mail.gmail.com Reported-by: Paolo Bonzini <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 44603de commit 20228df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/powerpc/kvm/e500_mmu_host.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,9 +498,11 @@ static inline int kvmppc_e500_shadow_map(struct kvmppc_vcpu_e500 *vcpu_e500,
498498
kvmppc_mmu_flush_icache(pfn);
499499

500500
out:
501+
spin_unlock(&kvm->mmu_lock);
502+
501503
/* Drop refcount on page, so that mmu notifiers can clear it */
502504
kvm_release_pfn_clean(pfn);
503-
spin_unlock(&kvm->mmu_lock);
505+
504506
return ret;
505507
}
506508

0 commit comments

Comments
 (0)