qemu-e2k/include/hw
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
..
acpi acpi: add interface to access user-installed tables 2013-10-14 17:48:53 +03:00
arm hw/arm: add allwinner a10 SoC support 2013-12-17 20:12:51 +00:00
audio isa: QOM'ify ISADevice 2013-06-07 14:55:33 +02:00
block fdc: QOM'ify ISA floppy controller 2013-04-29 08:27:47 -05:00
char hw/arm/digic: add UART support 2013-12-17 20:12:51 +00:00
cpu cpu/a9mpcore: Add Global Timer 2013-12-10 13:28:25 +00:00
cris
i2c
i386 hpet: enable to entitle more irq pins for hpet 2013-12-11 20:11:09 +02:00
input input: introduce keyboard handler list 2013-04-24 11:50:18 -05:00
intc hw/intc: add allwinner A10 interrupt controller 2013-12-17 20:12:51 +00:00
isa isa: Fix documentation of isa_register_portio_list() 2013-08-30 21:15:44 +02:00
kvm
lm32 lm32_juart: Relocate and tidy header 2013-07-29 21:06:27 +02:00
m68k
mips hw/mips: align initrd to 64KB to avoid kernel error 2013-07-29 00:27:35 +02:00
misc arm11mpcore: Split off SCU device 2013-11-05 17:47:30 +01:00
nvram loader: use file path size from fw_cfg.h 2013-10-14 17:48:52 +03:00
pci xen-pvdevice: make device-id property compulsory 2013-12-01 18:25:48 +00:00
pci-host pc: map PCI address space as catchall region for not mapped addresses 2013-12-10 12:29:56 +02:00
ppc spapr-rtas: add ibm, (get|set)-system-parameter 2013-12-20 01:57:59 +01:00
s390x s390/sclplmconsole: Add support for SCLP line-mode console 2013-09-20 13:55:30 +02:00
scsi scsi: Add 2 new sense codes needed by uas 2013-11-26 09:21:17 +01:00
sh4
sparc firmware_abi: move to include/hw/nvram/ 2013-06-02 18:13:54 +03:00
timer hw/timer: add allwinner a10 timer 2013-12-17 20:12:51 +00:00
unicore32
virtio virtio: Convert exit to unrealize 2013-12-09 21:46:49 +01:00
xen pc: Initializing ram_memory under Xen. 2013-09-09 16:22:19 +00:00
boards.h hw: Pass QEMUMachine to its init() method 2013-12-10 12:29:56 +02:00
bt.h Preparation for usb-bt-dongle conditional build 2013-09-10 11:14:41 +02:00
devices.h arm: fix location of some include files 2013-04-15 15:16:01 +02:00
elf_ops.h
empty_slot.h
hw.h linux-user: Fix compilation failure 2013-06-27 15:38:35 -05:00
ide.h
irq.h hw/core: Add interface to allocate and free a single IRQ 2013-10-14 17:11:44 +03:00
loader.h loader: drop return value for rom_add_blob_fixed 2013-11-10 12:08:38 +02:00
pcmcia.h pcmcia: QOM'ify PCMCIACardState and MicroDriveState 2013-11-05 18:06:52 +01:00
ptimer.h vmstate: Add support for an array of ptimer_state * 2013-12-17 20:12:51 +00:00
qdev-core.h qdev: Replace no_user by cannot_instantiate_with_device_add_yet 2013-12-23 00:27:22 +01:00
qdev-dma.h
qdev-properties.h qdev: Add SIZE type to qdev properties 2013-07-29 19:33:33 -05:00
qdev.h
sd.h
ssi.h
stream.h Trivial grammar and spelling fixes 2013-05-01 20:55:21 +04:00
sysbus.h memory: Change MemoryRegion priorities from unsigned to signed 2013-10-14 17:11:44 +03:00
usb.h usb: add vendor request defines 2013-11-28 15:39:27 +01:00
xilinx.h stream: Remove app argument hack 2013-04-16 10:04:23 +02:00