]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
ide: move restart callback to common code
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 23 Feb 2015 16:17:55 +0000 (11:17 -0500)
committerKevin Wolf <kwolf@redhat.com>
Tue, 10 Mar 2015 13:02:22 +0000 (14:02 +0100)
commit9898586d8929a7f1293fc64164b67a79289b074f
tree426929db8ec132c0ea9a1905c2d2b7cd73301e00
parentd34fceda8feb6c36722f41f3e1db40cf2af82ea8
ide: move restart callback to common code

With BMDMA specific excised from the restart functions,
create a HBA-agnostic restart callback to be shared
between the different HBAs.

Change the callback registered with the vmstate_change
handler to always point to ide_restart_cb instead of
relying on the IDEDMAOps.restart_cb() member.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1424708286-16483-7-git-send-email-jsnow@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/core.c
hw/ide/internal.h
hw/ide/pci.c
hw/ide/pci.h