Thanks for review. On Sun, Mar 13, 2022 at 02:54:15PM +0100, Paolo Bonzini <pbonzini@xxxxxxxxxx> wrote: > On 3/4/22 20:48, isaku.yamahata@xxxxxxxxx wrote: > > -static int __init vmx_init(void) > > -{ > > - int r, cpu; > > + if (sizeof(struct vcpu_vmx) > *vcpu_size) > > + *vcpu_size = sizeof(struct vcpu_vmx); > > + if (__alignof__(struct vcpu_vmx) > *vcpu_align) > > + *vcpu_align = __alignof__(struct vcpu_vmx); > > Please keep these four lines in vt_init, and rename the rest of > vmx_pre_kvm_init to hv_vp_assist_page_init. Likewise, rename > vmx_post_kvm_exit to hv_vp_assist_page_exit. > > Adjusting the vcpu_size and vcpu_align for TDX (I guess) can be added later > when TDX ops are introduced. sure. I'll make it like vcpu_size = max(sizeof(struct vcpu_vmx), sizeof(vcpu_tdx)); ... Thanks, -- Isaku Yamahata <isaku.yamahata@xxxxxxxxx>