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 patchset first add cleanup function in core layer and then call it in the ahci unit.
Li Qiang (2): ide: core: add cleanup function ide: ahci: call cleanup function in ahci unit hw/ide/ahci.c | 8 ++++++++ hw/ide/core.c | 21 +++++++++++++++++++++ include/hw/ide/internal.h | 2 ++ 3 files changed, 31 insertions(+) -- 1.8.3.1