qemu-e2k/hw/isa
Markus Armbruster d71b22bb6a hw: Mark devices picking up char backends actively FIXME
Character devices defined with -serial and -parallel are for board
initialization to wire up.  Board code examines serial_hds[] and
parallel_hds[] to find them, and creates devices with their qdev
chardev properties set accordingly.

Except a few devices go on a fishing expedition for a suitable backend
instead of exposing a chardev property for board code to set: they use
serial_hds[] (often via qemu_char_get_next_serial()) or parallel_hds[]
in their realize() or init() method to connect to a backend.

Picking up backends that way works when the devices are created by
board code.  But it's inappropriate for -device or device_add.  Not
only is it inconsistent with how the other characrer device models
work (they connect to a backend explicitly identified by a "chardev"
property), it breaks when the backend has been picked up by the board
or a previous -device / device_add already.

Example:

    $ qemu-system-ppc64 -M bamboo -S -device i82378 -device pc87312 -device pc87312
    qemu-system-ppc64: -device pc87312: Property 'isa-parallel.chardev' can't take value 'parallel0', it's in use

Mark them with suitable FIXME comments.

Cc: Li Guang <lig.fnst@cn.fujitsu.com>
Cc: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Cc: Antony Pavlov <antonynpavlov@gmail.com>
Cc: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
Cc: Michael Walle <michael@walle.cc>
Cc: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Cc: "Andreas Färber" <andreas.faerber@web.de>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2015-04-02 15:30:28 +02:00
..
Makefile.objs isa_mmio: delete 2013-07-25 08:12:27 -05:00
apm.c Fix debug print warning 2014-09-02 22:38:16 +04:00
i82378.c pci: Trivial device model conversions to realize 2015-02-26 12:42:16 +01:00
isa-bus.c isa: remove isa_mem_base variable 2015-02-13 14:09:28 +00:00
lpc_ich9.c acpi, ich9: Add unplug cb for ich9. 2015-02-26 12:42:18 +01:00
pc87312.c hw: Mark devices picking up char backends actively FIXME 2015-04-02 15:30:28 +02:00
piix4.c pci: Trivial device model conversions to realize 2015-02-26 12:42:16 +01:00
vt82c686.c pci: Trivial device model conversions to realize 2015-02-26 12:42:16 +01:00