Re: [PATCH 3/4] KVM: X86: Refactor kvm_arch_vcpu_create

2019-10-17 Thread Sean Christopherson
On Wed, Oct 16, 2019 at 12:40:32AM +0800, Xiaoyao Li wrote: > Current x86 arch vcpu creation flow is a little bit messed. > Specifically, vcpu's data structure allocation and vcpu initialization > are mixed up, which is unfriendly to read. > > Seperating the vcpu_create and vcpu_init just like

[PATCH 3/4] KVM: X86: Refactor kvm_arch_vcpu_create

2019-10-15 Thread Xiaoyao Li
Current x86 arch vcpu creation flow is a little bit messed. Specifically, vcpu's data structure allocation and vcpu initialization are mixed up, which is unfriendly to read. Seperating the vcpu_create and vcpu_init just like what ARM does, that it first calls vcpu_create related functions for