Re: [RFC PATCH 3/4] KVM: x86/tdx: Do VMXON and TDX-Module initialization during tdx_init()

From: Sean Christopherson

Date: Tue Oct 14 2025 - 15:05:30 EST


On Tue, Oct 14, 2025, dan.j.williams@xxxxxxxxx wrote:
> Chao Gao wrote:
> > >> Also, can we name the two tdx_offline_cpu()'s differently? This one is all about
> > >> keyid's being in use. tdx_hkid_offline_cpu()?
> > >
> > >Ya. And change the description to "kvm/cpu/tdx:hkid_packages"? Or something
> > >like that.
> > >
> >
> > Is it a good idea to consolidate the two tdx_offline_cpu() functions, i.e.,
> > integrate KVM's version into x86 core?
>
> This looks good to me, some additional cleanup opportunities below:

+1. This crossed my mind as well, but for once I reeled myself in as I'm very
susceptible to self-induced scope creep :-)