qemu-patch-raspberry4/hw/ide
Stefan Hajnoczi 61d9d6b091 ide: Register vm change state handler once only
We register the vm change state handler in a PCI BAR map() function.
This function can be called multiple times throughout the lifetime of a
PCI IDE device.  This results in duplicate vm change state handlers
being register, none of which are ever unregistered.

Instead, register the vm change state handler in the device's init
function once and for all.

piix tested, cmd646 and via not tested.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2010-12-17 16:11:03 +01:00
..
ahci.c ahci: set SATA Mode Select 2010-12-17 16:11:03 +01:00
cmd646.c ide: Register vm change state handler once only 2010-12-17 16:11:03 +01:00
core.c ide: honor ncq for atapi 2010-12-17 16:11:03 +01:00
internal.h ide: add ncq identify data for ahci sata drives 2010-12-17 16:11:02 +01:00
isa.c Store IDE bus id in IDEBus structure for easy access. 2010-12-11 21:27:47 +00:00
macio.c Add endianness as io mem parameter 2010-12-11 15:24:25 +00:00
microdrive.c Merge remote branch 'kwolf/for-anthony' into staging 2010-07-06 10:48:01 -05:00
mmio.c Add endianness as io mem parameter 2010-12-11 15:24:25 +00:00
pci.c ide: Split out BMDMA code from ATA core 2010-12-17 16:11:01 +01:00
pci.h ide: Split out BMDMA code from ATA core 2010-12-17 16:11:01 +01:00
piix.c ide: Register vm change state handler once only 2010-12-17 16:11:03 +01:00
qdev.c Add bootindex parameter to net/block/fd device 2010-12-11 21:32:46 +00:00
via.c ide: Register vm change state handler once only 2010-12-17 16:11:03 +01:00