qemu-patch-raspberry4/hw/ide
Markus Armbruster e23a1b33b5 New qdev_init_nofail()
Like qdev_init(), but terminate program via hw_error() instead of
returning an error value.

Use it instead of qdev_init() where terminating the program on failure
is okay, either because it's during machine construction, or because
we know that failure can't happen.

Because relying in the latter is somewhat unclean, and the former is
not always obvious, it would be nice to go back to qdev_init() in the
not-so-obvious cases, only with proper error handling.  I'm leaving
that for another day, because it involves making sure that error
values are properly checked by all callers.

Patchworks-ID: 35168
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-10-07 08:54:54 -05:00
..
core.c split away drive init from ide_init2() 2009-09-15 19:23:30 +00:00
internal.h switch ide bus to inplace allocation. 2009-10-05 09:32:47 -05:00
isa.c switch ide bus to inplace allocation. 2009-10-05 09:32:47 -05:00
macio.c Revert "Get rid of _t suffix" 2009-10-01 16:12:16 -05:00
microdrive.c ide: pass down DriveInfo instead of BlockDriverState 2009-09-04 09:37:27 -05:00
mmio.c Revert "Get rid of _t suffix" 2009-10-01 16:12:16 -05:00
pci.c New qdev_init_nofail() 2009-10-07 08:54:54 -05:00
qdev.c switch ide bus to inplace allocation. 2009-10-05 09:32:47 -05:00