Introduce reset notifier order
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 1 May 2009 22:29:37 +0000 (00:29 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 22 May 2009 15:50:34 +0000 (10:50 -0500)
commit8217606e6edb49591b4a6fd5a0d1229cebe470a9
treefff3d6f590833c0f894a6c7c300ab126b5259d95
parent93102fd6010c68320bc9a008c8cf70cb4a36d4b9
Introduce reset notifier order

Add the parameter 'order' to qemu_register_reset and sort callbacks on
registration. On system reset, callbacks with lower order will be
invoked before those with higher order. Update all existing users to the
standard order 0.

Note: At least for x86, the existing users seem to assume that handlers
are called in their registration order. Therefore, the patch preserves
this property. If someone feels bored, (s)he could try to identify this
dependency and express it properly on callback registration.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
74 files changed:
hw/ac97.c
hw/acpi.c
hw/adb.c
hw/apic.c
hw/arm_boot.c
hw/axis_dev88.c
hw/cirrus_vga.c
hw/cs4231.c
hw/cs4231a.c
hw/cuda.c
hw/dma.c
hw/dp8393x.c
hw/eccmemctl.c
hw/eepro100.c
hw/es1370.c
hw/escc.c
hw/esp.c
hw/etraxfs.c
hw/etraxfs_timer.c
hw/fdc.c
hw/fw_cfg.c
hw/g364fb.c
hw/grackle_pci.c
hw/heathrow_pic.c
hw/hpet.c
hw/hw.h
hw/i8254.c
hw/i8259.c
hw/ide.c
hw/ioapic.c
hw/iommu.c
hw/lm832x.c
hw/m48t59.c
hw/mac_dbdma.c
hw/mac_nvram.c
hw/mips_jazz.c
hw/mips_malta.c
hw/mips_mipssim.c
hw/mips_r4k.c
hw/musicpal.c
hw/nseries.c
hw/omap1.c
hw/omap2.c
hw/openpic.c
hw/parallel.c
hw/pc.c
hw/pckbd.c
hw/pl181.c
hw/ppc405_boards.c
hw/ppc405_uc.c
hw/ppc4xx_devs.c
hw/ppc4xx_pci.c
hw/ppc_newworld.c
hw/ppc_oldworld.c
hw/ppc_prep.c
hw/ps2.c
hw/rc4030.c
hw/sbi.c
hw/serial.c
hw/slavio_intctl.c
hw/slavio_misc.c
hw/slavio_timer.c
hw/sparc32_dma.c
hw/sun4c_intctl.c
hw/sun4m.c
hw/sun4u.c
hw/tcx.c
hw/tsc2005.c
hw/tsc210x.c
hw/unin_pci.c
hw/usb-ohci.c
hw/vga.c
hw/virtio.c
vl.c