aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2014-06-09 19:28:00 +0200
committerMichael S. Tsirkin <mst@redhat.com>2014-06-19 16:41:53 +0300
commit9d3cae68ac4de8cbae7bf750d6ebe6cb87cd9365 (patch)
tree5ad721dbdd477ff9f97afad3a1e3e291b2a98092
parent292b1634d008d289d633ff5a8f2275288f607e56 (diff)
downloadqemu-9d3cae68ac4de8cbae7bf750d6ebe6cb87cd9365.zip
qemu-9d3cae68ac4de8cbae7bf750d6ebe6cb87cd9365.tar.gz
qemu-9d3cae68ac4de8cbae7bf750d6ebe6cb87cd9365.tar.bz2
pc: q35: acpi: report error to user on unsupported unplug request
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>
-rw-r--r--hw/isa/lpc_ich9.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/isa/lpc_ich9.c b/hw/isa/lpc_ich9.c
index fb2b82d..3fe2311 100644
--- a/hw/isa/lpc_ich9.c
+++ b/hw/isa/lpc_ich9.c
@@ -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)