Paolo Bonzini 2264750483 scsi: give device a parent before setting properties
This mimics what is done in qdev_device_add, and lets the device be
freed in case something goes wrong.  Otherwise, object_unparent returns
immediately without freeing the device, which is on the other hand left
in the parent bus's list of children.

scsi_bus_legacy_handle_cmdline then returns an error, and the HBA is
destroyed as well with object_unparent.  But the lingering device that
was not removed in scsi_bus_legacy_add_drive cannot be removed now either,
and bus_unparent gets stuck in an infinite loop trying to empty the list
of children.

The right fix of course would be to assert in bus_add_child that the
device already has a bus, and remove the "safety net" that adds the
drive to the QOM tree in device_set_realized.  I am not yet sure whether
that would entail changing all callers to qdev_create (as well as
isa_create and usb_create and the corresponding _try_create versions).

Reported-by: Markus Armbruster <armbru@redhat.com>
Tested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-02-27 14:43:44 +01:00
2015-02-16 17:30:19 +01:00
2015-02-06 16:11:38 +00:00
2015-02-19 09:33:03 +01:00
2015-02-19 09:33:03 +01:00
2015-02-13 11:44:50 +00:00
2015-02-12 21:21:38 -08:00
2014-06-16 13:24:35 +02:00
2015-02-23 10:56:09 -05:00
2015-02-24 13:58:18 +00:00
2015-02-16 17:30:19 +01:00
2015-01-07 16:16:26 +01:00
2015-02-16 17:31:55 +01:00
2015-02-06 14:35:52 +00:00
2015-02-05 17:16:14 +01:00
2015-02-16 14:36:03 +00:00
2015-01-22 17:41:59 +00:00
2015-02-16 15:07:19 +00:00
2015-01-14 10:38:57 +01:00
2015-02-12 21:21:38 -08:00
2014-06-05 16:10:33 +02:00
2014-12-09 21:48:34 +00:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
Readme 531 MiB
Languages
C 82.5%
C++ 7%
Python 3.3%
Dylan 2.8%
Shell 1.5%
Other 2.6%