]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: nVMX: Use vcpu instead of vmx->vcpu when vcpu is available
authorXin Li <xin@zytor.com>
Wed, 24 Sep 2025 14:54:21 +0000 (07:54 -0700)
committerSean Christopherson <seanjc@google.com>
Mon, 13 Oct 2025 21:52:18 +0000 (14:52 -0700)
commitf505c7b16fbeea25f82a7e8d578e128178dd6706
tree8f08bd2bbc06980a0d73eb87fd5308f78b9986c5
parent0152e049bd764942c41bc79b339ba6281c15dee9
KVM: nVMX: Use vcpu instead of vmx->vcpu when vcpu is available

Prefer using vcpu directly when available, instead of accessing it
through vmx->vcpu.

Signed-off-by: Xin Li (Intel) <xin@zytor.com>
Link: https://lore.kernel.org/r/20250924145421.2046822-1-xin@zytor.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/nested.c