Re: [PATCH v2 1/3] KVM: VMX: Move vmcs related resetting out of vmx_vcpu_reset()

2019-10-18 Thread Xiaoyao Li
On 10/19/2019 12:57 AM, Sean Christopherson wrote: On Fri, Oct 18, 2019 at 05:37:21PM +0800, Xiaoyao Li wrote: Move vmcs related codes into a new function vmx_vmcs_reset() from vmx_vcpu_reset(). So that it's more clearer which data is related with vmcs and can be held in vmcs. Suggested-by:

Re: [PATCH v2 1/3] KVM: VMX: Move vmcs related resetting out of vmx_vcpu_reset()

2019-10-18 Thread Sean Christopherson
On Fri, Oct 18, 2019 at 05:37:21PM +0800, Xiaoyao Li wrote: > Move vmcs related codes into a new function vmx_vmcs_reset() from > vmx_vcpu_reset(). So that it's more clearer which data is related with > vmcs and can be held in vmcs. > > Suggested-by: Krish Sadhukhan > Signed-off-by: Xiaoyao Li

[PATCH v2 1/3] KVM: VMX: Move vmcs related resetting out of vmx_vcpu_reset()

2019-10-18 Thread Xiaoyao Li
Move vmcs related codes into a new function vmx_vmcs_reset() from vmx_vcpu_reset(). So that it's more clearer which data is related with vmcs and can be held in vmcs. Suggested-by: Krish Sadhukhan Signed-off-by: Xiaoyao Li --- arch/x86/kvm/vmx/vmx.c | 65