Thomas Huth 6038f98904 hw/qdev-core: Fix description of instance_init
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.
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.

Reviewed-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2018-09-25 17:26:18 +02:00
..
2016-10-04 13:28:07 +01:00
2017-01-27 18:07:59 +01:00
2016-05-18 15:04:27 +03:00
2013-04-08 18:13:10 +02:00
2018-09-25 13:30:45 +01:00
2018-02-09 05:05:11 +01:00
2018-06-29 18:29:15 +01:00
2018-06-27 13:01:40 +01:00
2018-02-09 05:05:11 +01:00
2017-01-27 18:07:59 +01:00
2018-08-20 14:18:49 +02:00
2018-06-01 14:15:10 +02:00
2017-06-01 18:49:22 +02:00
2018-08-16 14:05:28 +01:00
2013-04-08 18:13:10 +02:00