Re: [PATCH v3] KVM: VMX: fix lockdep warning on posted intr wakeup

From: Paolo Bonzini
Date: Wed Mar 29 2023 - 07:52:19 EST


On 3/29/23 03:53, Yan Zhao wrote:
Yes, there's no actual deadlock currently.

But without fixing this issue, debug_locks will be set to false along
with below messages printed. Then lockdep will be turned off and any
other lock detections like lockdep_assert_held()... will not print
warning even when it's obviously violated.

Can you use lockdep subclasses, giving 0 to the sched_in path and 1 to the sched_out path?

Paolo