pcmcia: QOM'ify PCMCIACardState and MicroDriveState
Turn PCMCIACardState into a device.Move callbacks to new PCMCIACardClass.
Derive TYPE_MICRODRIVE from TYPE_PCMCIA_CARD.Replace ide_init2_with_non_qdev_drives().
Signed-off-by: Othmar Pasteka <pasteka@kabsi.at>...
microdrive: Coding Style cleanups
Add missing braces.
Signed-off-by: Andreas Färber <afaerber@suse.de>
qdev-monitor: Avoid qdev as variable name
Prepares for bringing error cleanup code into canonical QOM form.
Includes a whitespace removal after curly brace by Stefan.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>Reviewed-by: Igor Mammedov <imammedo@redhat.com>...
qdev-monitor: Inline qdev_init() for device_add
For historic reasons, qdev_init() unparents the device on failure.Inline this to make the error paths clearer and consistent.
Reviewed-by: Igor Mammedov <imammedo@redhat.com>Signed-off-by: Andreas Färber <afaerber@suse.de>
qom: Fix pointer to int property helpers' documentation
Relocate to alongside the other object_property_add_* helpers while at it.
pxa: Fix typo "dettach"
qdev: Drop misleading qdev_free() function
The qdev_free() function name is misleading since all the function doesis unlink the device from its parent. The device is not necessarilyfreed.
The device will be freed when its QObject refcount reaches zero. It is...
qdev-monitor: Unref device when device_add fails
qdev_device_add() leaks the created device upon failure. I suspect thisproblem crept in because qdev_free() unparents the device but does notdrop a reference - confusing name.
Cc: qemu-stable@nongnu.org...
qdev-monitor: Clean up qdev_device_add() variable naming
Avoid confusion between object (obj) and object class (oc).Tidy DeviceClass variable while at it (k -> dc).
qdev-monitor: Fix crash when device_add is called with abstract driver
User is able to crash running QEMU when following monitorcommand is called:
device_add intel-hda-generic
Crash is caused by assertion in object_initialize_with_type()when type is abstract....
View all revisions | View revisions
Also available in: Atom