On Fri, Dec 12, 2025 at 08:33:41PM +0530, Ani Sinha wrote:
> When the confidential virtual machine KVM file descriptor changes due to the
> guest reset, some TDX specific setup steps needs to be done again. This
> includes finalizing the inital guest launch state again. This change
> re-executes some parts of the TDX setup during the device reset phaze using a
> resettable interface. This finalizes the guest launch state again and locks
> it in. Also care has been taken so that notifiers are installed only once.
> + if (!notifier_added) {
> + qemu_add_machine_init_done_notifier(&tdx_machine_done_notify);
> + notifier_added = true;
> + }
Is this notifier needed still if you finalize the initial guest state in
the reset handler?
take care,
Gerd