Re: [RFC PATCH v5 008/104] KVM: TDX: Add a function to initialize TDX module
From: Kai Huang
Date: Wed Mar 30 2022 - 21:02:21 EST
> >
> > - VMXON on all pCPUs: The TDX module initialization requires to enable VMX
> > (VMXON) on all present pCPUs. vmx_hardware_enable() which is called on creating
> > guest does it. It naturally fits with the TDX module initialization at creating
> > first TD. I wanted to avoid code to enable VMXON on loading the kvm_intel.ko.
>
> That's a solvable problem, though making it work without exporting hardware_enable_all()
> could get messy.
Could you elaborate a little bit on how to resolve?
--
Thanks,
-Kai