diff options
| author | Eduardo Habkost | 2014-07-03 21:45:35 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2014-07-06 08:13:54 +0200 |
| commit | dd98b71f4885814de9a64e7acc0e17b38ab7c38b (patch) | |
| tree | cceed6b43b0744ced141be3455dbbabe2ba3c756 /include | |
| parent | qdev: Don't abort() in case globals can't be set (diff) | |
| download | qemu-dd98b71f4885814de9a64e7acc0e17b38ab7c38b.tar.gz qemu-dd98b71f4885814de9a64e7acc0e17b38ab7c38b.tar.xz qemu-dd98b71f4885814de9a64e7acc0e17b38ab7c38b.zip | |
qdev: Fix crash when using non-device class name on -global
This fixes the following crash:
$ qemu-system-x86_64 -global container.xxx=y
hw/core/qdev-properties-system.c:399:qdev_add_one_global: Object 0x7f7eff234100 is not an instance of type device
Aborted (core dumped)
New behavior will be to just warn, just like when non-existing clas
names are used:
$ qemu-system-x86_64 -global container.xxx=y
qemu-system-x86_64: Warning: "-global container.xxx=y" not used
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Tested-by: Don Slutz <dslutz@verizon.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
