Re: KVM: x86/mmu: __kvm_rmap_lock() preemption assert trips on PREEMPT_RT

From: David Woodhouse

Date: Thu Aug 27 2026 - 17:59:25 EST


On Thu, 2026-08-27 at 14:47 -0700, Sean Christopherson wrote:
> I'll take it for a spin, unless someone has a better idea.

Heh, no pun intended?

> - lockdep_assert_preemption_disabled();
> + if (IS_ENABLED(CONFIG_PREEMPT_RT))
> + lockdep_assert_preemption_disabled();
> + else
> + lockdep_assert_held(&kvm->mmu_lock);

Other way round?

I'll fix that and throw it on top of my GPC/RT/RCU torture tests.

Attachment: smime.p7s
Description: S/MIME cryptographic signature