Skip to content

Commit e7d3439

Browse files
committed
Revert "KVM: e500: always restore irqs"
This reverts commit bce6ade which is commit 87ecfdbc699cc95fac73291b52650283ddcf929d 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 3fa1370 commit e7d3439

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/powerpc/kvm/e500_mmu_host.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ static inline int kvmppc_e500_shadow_map(struct kvmppc_vcpu_e500 *vcpu_e500,
479479
if (pte_present(pte)) {
480480
wimg = (pte_val(pte) >> PTE_WIMGE_SHIFT) &
481481
MAS2_WIMGE_MASK;
482+
local_irq_restore(flags);
482483
} else {
483484
local_irq_restore(flags);
484485
pr_err_ratelimited("%s: pte not present: gfn %lx,pfn %lx\n",
@@ -487,9 +488,8 @@ static inline int kvmppc_e500_shadow_map(struct kvmppc_vcpu_e500 *vcpu_e500,
487488
goto out;
488489
}
489490
}
490-
local_irq_restore(flags);
491-
492491
writable = kvmppc_e500_ref_setup(ref, gtlbe, pfn, wimg);
492+
493493
kvmppc_e500_setup_stlbe(&vcpu_e500->vcpu, gtlbe, tsize,
494494
ref, gvaddr, stlbe);
495495

0 commit comments

Comments
 (0)