Thomas Huth <th...@redhat.com> writes:

> The part of the documentation of DeviceClass that talks about instance_init
> is partly wrong: instance_init() functions must not abort or exit, since
> the function is also called during introspection of the device already.

I figure it was correct back when the comment was written.  It's
definitely wrong now.

> So if a device calls exit() during its instance_init() function, QEMU
> terminates unexpectedly if somebody tries to just have a look at the
> interfaces from the device with "device_add xyz,help" or with the
> "device-list-properties" QOM command. This should never happen.
>
> Signed-off-by: Thomas Huth <th...@redhat.com>

Reviewed-by: Markus Armbruster <arm...@redhat.com>

Reply via email to