Hi,

> +    /*
> +     * different accelerators implement how to close the old file handle of
> +     * the accelerator descriptor and create a new one here. Resetting
> +     * file handle is necessary to create a new confidential VM context post
> +     * VM reset.
> +     */
> +    if (current_machine->cgs && reason == SHUTDOWN_CAUSE_GUEST_RESET) {

So, the vmfd code is unly used in confidential VMs.  I think it makes
sense to offer some option to enable that for non-confidential VMs too.
Useful for development and also for testing this in qemu CI.

take care,
  Gerd


Reply via email to