Re: [PATCH v4 08/11] KVM: Move nVMX's lockdep logic for vcpu->mutex to a common helper

From: Philippe Mathieu-Daudé

Date: Wed Jul 01 2026 - 11:06:59 EST


On 1/7/26 00:56, Sean Christopherson wrote:
Extract nVMX's lockdep assertion that a vCPU is locked or otherwise
unreachable into a common helper, as KVM x86 is about to gain another user,
but there is nothing x86-specific about the logic, i.e. the assertion may
be useful for other architectures.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
---
arch/x86/kvm/vmx/nested.h | 6 ++----
include/linux/kvm_host.h | 6 ++++++
2 files changed, 8 insertions(+), 4 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@xxxxxxxxxxxxxxxx>