diff options
| author | Greg Kurz | 2016-07-22 00:00:57 +0200 |
|---|---|---|
| committer | Eduardo Habkost | 2016-07-27 16:25:06 +0200 |
| commit | 03f28efbbb0ee521611e0eb28b45096b3598fb34 (patch) | |
| tree | 68510b455dee660280eb7371d35a5d982d2e3f36 /linux-headers | |
| parent | qdev: ignore GlobalProperty.errp for hotplugged devices (diff) | |
| download | qemu-03f28efbbb0ee521611e0eb28b45096b3598fb34.tar.gz qemu-03f28efbbb0ee521611e0eb28b45096b3598fb34.tar.xz qemu-03f28efbbb0ee521611e0eb28b45096b3598fb34.zip | |
vl: exit if a bad property value is passed to -global
When passing '-global driver=host-powerpc64-cpu,property=compat,value=foo'
on the command line, without this patch, we get the following warning per
device (which means many lines if the guests has many cpus):
qemu-system-ppc64: Warning: can't apply global host-powerpc64-cpu.compat=foo:
Invalid compatibility mode "foo"
... and QEMU continues execution, ignoring the property.
With this patch, we get a single line:
qemu-system-ppc64: can't apply global host-powerpc64-cpu.compat=foo:
Invalid compatibility mode "foo"
... and QEMU exits.
The previous behavior is kept for hotplugged devices since we don't want
QEMU to exit when doing device_add.
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'linux-headers')
0 files changed, 0 insertions, 0 deletions
