summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorStefan Hajnoczi2010-12-16 16:54:06 +0100
committerKevin Wolf2010-12-17 16:11:03 +0100
commit61d9d6b091aa04e5e5bd20951aa689a5bbe65aed (patch)
treefb48df4b8f9d9f01c1bacec8d40c96e908794c36 /block
parentRemove NULL checks for bdrv_new return value (diff)
downloadqemu-61d9d6b091aa04e5e5bd20951aa689a5bbe65aed.tar.gz
qemu-61d9d6b091aa04e5e5bd20951aa689a5bbe65aed.tar.xz
qemu-61d9d6b091aa04e5e5bd20951aa689a5bbe65aed.zip
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>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions