On Thu, Feb 08, 2024 at 02:30:40PM +0100, Paolo Bonzini <pbonzini@xxxxxxxxxx> wrote: > On Tue, Jan 23, 2024 at 12:54 AM <isaku.yamahata@xxxxxxxxx> wrote: > > > > From: Kai Huang <kai.huang@xxxxxxxxx> > > > > KVM will need to make SEAMCALLs to create and run TDX guests. Export > > SEAMCALL functions for KVM to use. > > > > Also add declaration of SEAMCALL functions to <asm/asm-prototypes.h> to > > support CONFIG_MODVERSIONS=y. > > > > Signed-off-by: Kai Huang <kai.huang@xxxxxxxxx> > > I thought you were going to introduce builtin functions for SEAMCALLs > needed by KVM, instead? After I talked with Kai, I concluded to use the common function. Probably for TDH.VP.ENTER, we'd like to use customized version to avoid shuffling registers between struct tdx_module_args and KVM regs. We can do it later as optimization. -- Isaku Yamahata <isaku.yamahata@xxxxxxxxxxxxxxx>