diff options
Diffstat (limited to 'qdev-monitor.c')
-rw-r--r-- | qdev-monitor.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qdev-monitor.c b/qdev-monitor.c index f2a5a6fc56..7877d01878 100644 --- a/qdev-monitor.c +++ b/qdev-monitor.c @@ -490,6 +490,11 @@ DeviceState *qdev_device_add(QemuOpts *opts) } dc = DEVICE_CLASS(oc); + if (dc->cannot_instantiate_with_device_add_yet) { + qerror_report(QERR_INVALID_PARAMETER_VALUE, "driver", + "pluggable device type"); + return NULL; + } /* find bus */ path = qemu_opt_get(opts, "bus"); |