qdev: GlobalProperty.errp field
commit77280adbdf308af855844d921e5f16a873840568
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 15 Jun 2016 19:08:06 +0000 (15 16:08 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Thu, 7 Jul 2016 18:24:52 +0000 (7 15:24 -0300)
tree03bc6680d5583bcc0f91a87821d58acc8d121090
parent8d76bfe8f8dbc7995bc0682d14f5f92583ae5b0a
qdev: GlobalProperty.errp field

The new field will allow error handling to be configured by
qdev_prop_register_global() callers: &error_fatal and
&error_abort can be used to make QEMU exit or abort if any errors
are reported when applying the properties.

While doing it, change the error message from "global %s.%s=%s
ignored" to "can't apply global %s.%s=%s".

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/core/qdev-properties.c
include/hw/qdev-core.h