]> git.proxmox.com Git - qemu.git/commit - hw/grackle_pci.c
New qdev_init_nofail()
authorMarkus Armbruster <armbru@redhat.com>
Tue, 6 Oct 2009 23:15:58 +0000 (01:15 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 7 Oct 2009 13:54:54 +0000 (08:54 -0500)
commite23a1b33b53d25510320b26d9f154e19c6c99725
tree2c0c5b9ac463c9e9ed745d1ea1837892cac139f3
parent33e66b86d89040f0a9e99aa53deb74ce8936a649
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>
34 files changed:
hw/apb_pci.c
hw/arm_sysctl.c
hw/armv7m.c
hw/axis_dev88.c
hw/escc.c
hw/esp.c
hw/etraxfs.c
hw/fdc.c
hw/grackle_pci.c
hw/i2c.c
hw/ide/pci.c
hw/integratorcp.c
hw/isa-bus.c
hw/m48t59.c
hw/mc146818rtc.c
hw/mips_malta.c
hw/musicpal.c
hw/ne2000-isa.c
hw/pc.c
hw/pci.c
hw/piix_pci.c
hw/qdev.c
hw/qdev.h
hw/smc91c111.c
hw/ssi.c
hw/stellaris.c
hw/sun4m.c
hw/sun4u.c
hw/syborg.c
hw/sysbus.c
hw/unin_pci.c
hw/usb-bus.c
hw/vga-pci.c
hw/xilinx.h