summaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-03-10 16:52:03 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-03-13 12:58:39 +0100
commite4c6eff5a3b596b62437344e20a2985ac2a23673 (patch)
tree5a3059c3d3500f94808e1bf66cb5c59ac618cb8e /arch/powerpc
parent36f688adf413e2e5273db5e6227f286d1d8bb871 (diff)
downloadlinux-e4c6eff5a3b596b62437344e20a2985ac2a23673.tar.gz
linux-e4c6eff5a3b596b62437344e20a2985ac2a23673.tar.bz2
linux-e4c6eff5a3b596b62437344e20a2985ac2a23673.zip
Revert "KVM: PPC: e500: Mark "struct page" pfn accessed before dropping mmu_lock"
This reverts commit 59e21c4613b0a46f46eb124984928df46d88ad57 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 <pbonzini@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kvm/e500_mmu_host.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/e500_mmu_host.c b/arch/powerpc/kvm/e500_mmu_host.c
index dc75f025dfe2..79c6359b18ae 100644
--- a/arch/powerpc/kvm/e500_mmu_host.c
+++ b/arch/powerpc/kvm/e500_mmu_host.c
@@ -498,9 +498,11 @@ static inline int kvmppc_e500_shadow_map(struct kvmppc_vcpu_e500 *vcpu_e500,
kvmppc_mmu_flush_icache(pfn);
out:
+ spin_unlock(&kvm->mmu_lock);
+
/* Drop refcount on page, so that mmu notifiers can clear it */
kvm_release_pfn_clean(pfn);
- spin_unlock(&kvm->mmu_lock);
+
return ret;
}