]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Use direct vcpu pointer during vCPU create/free
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 18 Dec 2019 21:54:50 +0000 (13:54 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jan 2020 08:18:54 +0000 (09:18 +0100)
commit4f056c370918a4b1f7d7c5f615826b221bc1af9c
tree68fac8448334de33281bc84d38240f6ecc80d576
parentebbc1cc8abd2f27cfffe05e09eda0b9d5d686377
KVM: VMX: Use direct vcpu pointer during vCPU create/free

Capture the vcpu pointer in a local varaible and replace '&vmx->vcpu'
references with a direct reference to the pointer in anticipation of
moving bits of the code to common x86 and passing the vcpu pointer into
vmx_create_vcpu(), i.e. eliminate unnecessary noise from future patches.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c