qemu/hw/arm
Markus Armbruster efec3dd631 qdev: Replace no_user by cannot_instantiate_with_device_add_yet
In an ideal world, machines can be built by wiring devices together
with configuration, not code.  Unfortunately, that's not the world we
live in right now.  We still have quite a few devices that need to be
wired up by code.  If you try to device_add such a device, it'll fail
in sometimes mysterious ways.  If you're lucky, you get an
unmysterious immediate crash.

To protect users from such badness, DeviceClass member no_user used to
make device models unavailable with -device / device_add, but that
regressed in commit 18b6dad.  The device model is still omitted from
help, but is available anyway.

Attempts to fix the regression have been rejected with the argument
that the purpose of no_user isn't clear, and it's prone to misuse.

This commit clarifies no_user's purpose.  Anthony suggested to rename
it cannot_instantiate_with_device_add_yet_due_to_internal_bugs, which
I shorten somewhat to keep checkpatch happy.  While there, make it
bool.

Every use of cannot_instantiate_with_device_add_yet gets a FIXME
comment asking for rationale.  The next few commits will clean them
all up, either by providing a rationale, or by getting rid of the use.

With that done, the regression fix is hopefully acceptable.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel.a@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
2013-12-23 00:27:22 +01:00
..
allwinner-a10.c hw/arm: add allwinner a10 SoC support 2013-12-17 20:12:51 +00:00
armv7m.c armv7m: Don't enforce use of kernel for qtest 2013-11-05 17:47:29 +01:00
boot.c device_tree: s/qemu_devtree/qemu_fdt globally 2013-12-20 01:58:11 +01:00
collie.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
cubieboard.c hw/arm: add cubieboard support 2013-12-17 20:12:51 +00:00
digic.c hw/arm/digic: add UART support 2013-12-17 20:12:51 +00:00
digic_boards.c hw/arm/digic: add NOR ROM support 2013-12-17 20:12:51 +00:00
exynos4_boards.c exynos4_boards: Silence lack of -smp 2 warning for qtest 2013-11-05 17:47:29 +01:00
exynos4210.c hw/arm/exynos4210: Don't use arm_pic_init_cpu() 2013-08-20 14:54:28 +01:00
gumstix.c gumstix: Don't enforce use of -pflash for qtest 2013-11-05 17:47:28 +01:00
highbank.c arm/highbank.c: Fix MPCore periphbase name 2013-12-17 19:42:29 +00:00
integratorcp.c integrator/cp: add support for REFCNT register 2013-12-10 13:24:51 +00:00
kzm.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
mainstone.c mainstone: Don't enforce use of -pflash for qtest 2013-11-05 17:47:28 +01:00
Makefile.objs hw/arm: add cubieboard support 2013-12-17 20:12:51 +00:00
musicpal.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
nseries.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
omap1.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
omap2.c hw/arm/omap*: Don't use arm_pic_init_cpu() 2013-08-20 14:54:29 +01:00
omap_sx1.c omap_sx1: Don't enforce use of kernel or flash for qtest 2013-11-05 17:47:29 +01:00
palm.c palm: Don't enforce loading ROM or kernel for qtest 2013-11-05 17:47:29 +01:00
pxa2xx.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
pxa2xx_gpio.c pxa2xx_gpio: QOM cast cleanup for PXA2xxGPIOInfo 2013-07-29 21:06:26 +02:00
pxa2xx_pic.c pxa2xx_pic: QOM cast cleanup for PXA2xxPICState 2013-07-29 21:06:26 +02:00
realview.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
spitz.c pc,pci,virtio fixes and cleanups 2013-09-03 12:31:07 -05:00
stellaris.c pc,pci,virtio fixes and cleanups 2013-09-03 12:31:07 -05:00
strongarm.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
strongarm.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
tosa.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
versatilepb.c qdev: Replace no_user by cannot_instantiate_with_device_add_yet 2013-12-23 00:27:22 +01:00
vexpress.c device_tree: s/qemu_devtree/qemu_fdt globally 2013-12-20 01:58:11 +01:00
virt.c device_tree: s/qemu_devtree/qemu_fdt globally 2013-12-20 01:58:11 +01:00
xilinx_zynq.c arm/xilinx_zynq: Implement CBAR initialisation 2013-12-17 19:42:29 +00:00
z2.c z2: Don't enforce use of -pflash for qtest 2013-11-05 17:47:28 +01:00