aboutsummaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2018-03-19 15:00:46 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2018-04-10 10:05:38 +1000
commitddd835f32a18c087d3161213f47e89566ce05cc8 (patch)
tree4d21dc9f327db3f9fc26adcf1bea67aa1eece449 /target
parente69ba2b489d9cc6e976a29a58726d45361d85b9d (diff)
downloadqemu-ddd835f32a18c087d3161213f47e89566ce05cc8.zip
qemu-ddd835f32a18c087d3161213f47e89566ce05cc8.tar.gz
qemu-ddd835f32a18c087d3161213f47e89566ce05cc8.tar.bz2
hw/misc/macio: Fix crash when listing device properties of macio device
The macio-newworld device can currently be used to abort QEMU unexpectedly: $ ppc-softmmu/qemu-system-ppc -S -M ref405ep,accel=qtest -qmp stdio {"QMP": {"version": {"qemu": {"micro": 50, "minor": 11, "major": 2}, "package": "build-all"}, "capabilities": []}} { 'execute': 'qmp_capabilities' } {"return": {}} { 'execute': 'device-list-properties', 'arguments': {'typename': 'macio-newworld'}} Unexpected error in qemu_chr_fe_init() at chardev/char-fe.c:222: Device 'serial0' is in use Aborted (core dumped) qdev properties should be set during realize(), not during instance_init(), so move the related code there to fix this problem. Signed-off-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target')
0 files changed, 0 insertions, 0 deletions