Re: [PATCH v4 09/11] KVM: x86: Treat a vCPU as unreachable if its index is invalid
From: Philippe Mathieu-Daudé
Date: Wed Jul 01 2026 - 11:10:27 EST
On 1/7/26 00:56, Sean Christopherson wrote:
In the "vCPU locked or unreachable" lockdep assertion, treat a vCPU as
unreachable if its index is invalid, i.e. if the vCPU is in the process of
being created. Until the vCPU is inserted into the array of vCPUs, the
only way to get at the vCPU is via kvm_vm_ioctl_create_vcpu(). Note, the
actual index is set _before_ adding the vCPU to the array, i.e. there's no
risk of a false negative on the lockdep assertion.
Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
---
include/linux/kvm_host.h | 1 +
1 file changed, 1 insertion(+)
Reviewed-by: Philippe Mathieu-Daudé <philmd@xxxxxxxxxxxxxxxx>