On Thu, Feb 17, 2022 at 02:48:55AM -0500, Jagannathan Raman wrote:
> @@ -124,6 +190,11 @@ static void vfu_object_init(Object *obj)
>  
>      k->nr_devs++;
>  
> +    if (!phase_check(PHASE_MACHINE_READY)) {
> +        o->machine_done.notify = vfu_object_machine_done;
> +        qemu_add_machine_init_done_notifier(&o->machine_done);

This probably has to happen after the next if statement since
qemu_add_machine_init_done_notifier() can immediately call ->notify()
and we'd try to initialize on a non-remote machine type.

Attachment: signature.asc
Description: PGP signature

Reply via email to