qdev: do not allow to instantiate non hotpluggable device with device_add
commitce9835e00df65bf5beb6c094c0865d8e60018310
authorIgor Mammedov <imammedo@redhat.com>
Fri, 26 Sep 2014 09:28:18 +0000 (26 09:28 +0000)
committerAndreas Färber <afaerber@suse.de>
Wed, 15 Oct 2014 03:03:13 +0000 (15 05:03 +0200)
tree7fe485b0a2eba0916ae77ae2f8291c9190474dae
parent39b888bd88296b178082b5a2e4c6e82fcbd877f8
qdev: do not allow to instantiate non hotpluggable device with device_add

It will allow explicitly mark device as not hotpluggable and
avoid its creation with following error at realize time
and destroying it afterwards anyway. Instead of it will
error out even before instance of device is created.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
qdev-monitor.c