On 5/24/2022 3:09 PM, Gerd Hoffmann wrote:
On Thu, May 12, 2022 at 11:17:47AM +0800, Xiaoyao Li wrote:
Before a TD can run, it needs to
  - setup/configure TD HOB list;
  - initialize TDVF into TD's private memory;
  - initialize TD vcpu state;

Register a machine_init_done callback to all those stuff.

+static void tdx_finalize_vm(Notifier *notifier, void *unused)
+{
+    /* TODO */
+}

I'd suggest to squash this into the patch actually implementing
tdx_finalize_vm.

OK. I'll squash it into the next patch.

take care,
   Gerd



Reply via email to