Re: [PATCH v2 2/3] KVM: VMX: Rename {vmx,nested_vmx}_vcpu_setup() and minor cleanup

2019-10-18 Thread Xiaoyao Li
On 10/19/2019 1:09 AM, Sean Christopherson wrote: On Fri, Oct 18, 2019 at 05:37:22PM +0800, Xiaoyao Li wrote: Rename {vmx,nested_vmx}_vcpu_setup() to {vmx,nested_vmx}_vmcs_setup, to match what they really do. Aslo remove the vmcs unrelated codes to vmx_vcpu_create(). Do this in a separate

Re: [PATCH v2 2/3] KVM: VMX: Rename {vmx,nested_vmx}_vcpu_setup() and minor cleanup

2019-10-18 Thread Sean Christopherson
On Fri, Oct 18, 2019 at 05:37:22PM +0800, Xiaoyao Li wrote: > Rename {vmx,nested_vmx}_vcpu_setup() to {vmx,nested_vmx}_vmcs_setup, > to match what they really do. > > Aslo remove the vmcs unrelated codes to vmx_vcpu_create(). Do this in a separate patch, just in case there is a dependencies

[PATCH v2 2/3] KVM: VMX: Rename {vmx,nested_vmx}_vcpu_setup() and minor cleanup

2019-10-18 Thread Xiaoyao Li
Rename {vmx,nested_vmx}_vcpu_setup() to {vmx,nested_vmx}_vmcs_setup, to match what they really do. Aslo remove the vmcs unrelated codes to vmx_vcpu_create(). The initialization of vmx->hv_deadline_tsc can be removed here, because it will be called in vmx_vcpu_reset() as the flow: