Loading
RISCV: KVM: use raw_spinlock for critical section in imsic
stable inclusion from stable-v6.6.62 commit e01cac3d62845e71c84b4c89be32b2c2eb0c83cc category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IB5BUT Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e01cac3d62845e71c84b4c89be32b2c2eb0c83cc -------------------------------- [ Upstream commit 3ec4350d4efb5ccb6bd0e11d9cf7f2be4f47297d ] For the external interrupt updating procedure in imsic, there was a spinlock to protect it already. But since it should not be preempted in any cases, we should turn to use raw_spinlock to prevent any preemption in case PREEMPT_RT was enabled. Signed-off-by:Cyan Yang <cyan.yang@sifive.com> Reviewed-by:
Yong-Xuan Wang <yongxuan.wang@sifive.com> Reviewed-by:
Anup Patel <anup@brainfault.org> Message-ID: <20240919160126.44487-1-cyan.yang@sifive.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Wen Zhiwei <wenzhiwei@kylinos.cn>