qemu/include
Igor Mammedov 269e09f3fc add optional 2nd stage initialization to -object/object-add commands
Introduces USER_CREATABLE interface that must be implemented by
objects which are designed to created with -object CLI option or
object-add QMP command.

Interface provides an ability to do an optional second stage
initialization of the object created with -object/object-add
commands. By providing complete() callback, which is called
after the object properties were set.

It allows to:
 * prevents misusing of -object/object-add by filtering out
   objects that are not designed for it.
 * generalize second stage backend initialization instead of
   adding custom APIs to perform it
 * early error detection of backend initialization at -object/
   object-add time rather than through a proxy DEVICE object
   that tries to use backend.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2014-01-28 12:47:02 -05:00
..
block qemu-iotests: Test pwritev RMW logic 2014-01-24 17:40:25 +01:00
disas Add moxie disassembler 2013-03-23 14:25:41 +00:00
exec memory: syncronize kvm bitmap using bitmaps operations 2014-01-13 14:04:55 +01:00
fpu softfloat: Add support for ties-away rounding 2014-01-08 19:07:22 +00:00
hw usb: add support for microsoft os descriptors 2014-01-16 12:59:59 +01:00
migration migration: Move QEMU_VM_* defines to migration/migration.h 2014-01-13 12:39:48 +01:00
monitor readline: move readline to a generic location 2014-01-22 12:07:17 +01:00
net net: disallow to specify multicast MAC address 2013-11-08 17:32:34 +01:00
qapi qdict: Add qdict_array_split() 2014-01-22 12:07:17 +01:00
qemu qemu-option: Add qemu_config_parse_qdict() 2014-01-22 12:07:17 +01:00
qom add optional 2nd stage initialization to -object/object-add commands 2014-01-28 12:47:02 -05:00
sysemu device_tree: qemu_fdt_setprop: Rename val_array arg 2013-12-20 01:58:12 +01:00
ui include: add missing config-host.h include 2013-12-16 10:12:20 +01:00
config.h janitor: move remaining public headers to include/ 2012-12-19 08:32:46 +01:00
elf.h tcg-s390: Use qemu_getauxval in query_facilities 2013-11-30 07:45:30 +13:00
glib-compat.h glib: add a compatibility interface for g_timeout_add_seconds 2013-03-25 13:10:40 -05:00
qemu-common.h qmp: add interface blockdev-snapshot-delete-internal-sync 2013-09-12 10:12:47 +02:00
qemu-io.h qemu-io: add command completion 2014-01-22 12:07:17 +01:00
trace.h build: some simplifications for "trace/Makefile.objs" 2013-01-12 18:42:51 +01:00