Message ID | 1381416174-5110-10-git-send-email-armbru@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/qdev-monitor.c b/qdev-monitor.c index 36f6f09..c538fec 100644 --- a/qdev-monitor.c +++ b/qdev-monitor.c @@ -477,7 +477,7 @@ DeviceState *qdev_device_add(QemuOpts *opts) } } - if (!obj) { + if (!obj || DEVICE_CLASS(obj)->cannot_instantiate_with_device_add_yet) { qerror_report(QERR_INVALID_PARAMETER_VALUE, "driver", "device type"); return NULL; }