diff options
author | Li Qiang <liq3ea@gmail.com> | 2017-03-15 20:50:14 -0400 |
---|---|---|
committer | John Snow <jsnow@redhat.com> | 2017-03-15 20:50:14 -0400 |
commit | c9f086418a255f386e1c4d2c1418c032eb349537 (patch) | |
tree | ae6656d1c9aa9d57915f5edb68a1cab3025a9202 /include | |
parent | 44a109c1b38ddc9f853c33861875d0a85262de4f (diff) | |
download | qemu-c9f086418a255f386e1c4d2c1418c032eb349537.zip qemu-c9f086418a255f386e1c4d2c1418c032eb349537.tar.gz qemu-c9f086418a255f386e1c4d2c1418c032eb349537.tar.bz2 |
ide: core: add cleanup function
As the pci ahci can be hotplug and unplug, in the ahci unrealize
function it should free all the resource once allocated in the
realized function. This patch add ide_exit to free the resource.
Signed-off-by: Li Qiang <liqiang6-s@360.cn>
Message-id: 1488449293-80280-3-git-send-email-liqiang6-s@360.cn
Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/ide/internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/ide/internal.h b/include/hw/ide/internal.h index 88dc118..482a951 100644 --- a/include/hw/ide/internal.h +++ b/include/hw/ide/internal.h @@ -607,6 +607,7 @@ int ide_init_drive(IDEState *s, BlockBackend *blk, IDEDriveKind kind, uint32_t cylinders, uint32_t heads, uint32_t secs, int chs_trans); void ide_init2(IDEBus *bus, qemu_irq irq); +void ide_exit(IDEState *s); void ide_init_ioport(IDEBus *bus, ISADevice *isa, int iobase, int iobase2); void ide_register_restart_cb(IDEBus *bus); |