]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Use local pointer to vcpu_vmx in vmx_vcpu_after_set_cpuid()
authorOliver Upton <oupton@google.com>
Fri, 4 Feb 2022 20:47:05 +0000 (20:47 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 18:50:48 +0000 (13:50 -0500)
commit2095899c10498db8a39e9fbbe968fe4f15689cef
tree391bbe5bbe83d7b6058cacf89ebb2ac693495ed9
parentc41ccf0659e31e6b4e5015f1d96a85806465f325
KVM: VMX: Use local pointer to vcpu_vmx in vmx_vcpu_after_set_cpuid()

There is a local that contains a pointer to vcpu_vmx already. Just use
that instead to get at the structure directly instead of doing pointer
arithmetic.

No functional change intended.

Signed-off-by: Oliver Upton <oupton@google.com>
Message-Id: <20220204204705.3538240-8-oupton@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c