Skip to content
Commit 48c963e3 authored by Jiang Yi's avatar Jiang Yi Committed by Marc Zyngier
Browse files

KVM: arm/arm64: Release kvm->mmu_lock in loop to prevent starvation



Do cond_resched_lock() in stage2_flush_memslot() like what is done in
unmap_stage2_range() and other places holding mmu_lock while processing
a possibly large range of memory.

Signed-off-by: default avatarJiang Yi <giangyi@amazon.com>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Reviewed-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20200415084229.29992-1-giangyi@amazon.com
parent 892713e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment