]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commitdiff
pc: q35: acpi: report error to user on unsupported unplug request
authorIgor Mammedov <imammedo@redhat.com>
Mon, 9 Jun 2014 17:28:00 +0000 (19:28 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 19 Jun 2014 13:41:53 +0000 (16:41 +0300)
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/isa/lpc_ich9.c

index fb2b82d13f03bb4476c3c53152bc7a4674c3468f..3fe23113b0be93a971bed7e44ee463c58bbbc20a 100644 (file)
@@ -610,6 +610,8 @@ static void ich9_device_plug_cb(HotplugHandler *hotplug_dev,
 static void ich9_device_unplug_cb(HotplugHandler *hotplug_dev,
                                   DeviceState *dev, Error **errp)
 {
+    error_setg(errp, "acpi: device unplug request for not supported device"
+               " type: %s", object_get_typename(OBJECT(dev)));
 }
 
 static bool ich9_rst_cnt_needed(void *opaque)