qdev: ignore GlobalProperty.errp for hotplugged devices
commitb3443f43f45e06971d87c985bb0316c1e40259c9
authorGreg Kurz <groug@kaod.org>
Thu, 21 Jul 2016 21:58:37 +0000 (21 23:58 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Wed, 27 Jul 2016 14:25:06 +0000 (27 11:25 -0300)
treeaa46a4cdab5f81f177e7d938e6bbbf9910b5c8bf
parent78a3930685c3159c4b8f953bd9f9e7a28655d823
qdev: ignore GlobalProperty.errp for hotplugged devices

This patch ensures QEMU won't terminate while hotplugging a device if the
global property cannot be set and errp points to error_fatal or error_abort.

While here, it also fixes indentation of the typename argument.

Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/core/qdev-properties.c
include/hw/qdev-core.h