From 9d3cae68ac4de8cbae7bf750d6ebe6cb87cd9365 Mon Sep 17 00:00:00 2001 From: Igor Mammedov Date: Mon, 9 Jun 2014 19:28:00 +0200 Subject: pc: q35: acpi: report error to user on unsupported unplug request Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/isa/lpc_ich9.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hw/isa/lpc_ich9.c') diff --git a/hw/isa/lpc_ich9.c b/hw/isa/lpc_ich9.c index fb2b82d13f..3fe23113b0 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) -- cgit v1.2.3