Hello, Since mjt asked about it, I'm posting a first draft of AHCI migration support I recently pieced together. Some more pressing issues came up, including ide-cd being broken with AHCI, so that I have hardly tested this yet.
The initial issue was that the ports were dynamically allocated in ich.c and I did not find prior art dealing with that in VMState. I therefore took the easy path of converting it to a statically-sized array, which is a bit wasteful of course. Better suggestions welcome. The second part then is a mostly mechanical addition of fields and structs to VMState, possibly still incomplete. Happy Holidays, Andreas Cc: Kevin Wolf <[email protected]> Cc: Juan Quintela <[email protected]> Cc: Alexander Graf <[email protected]> Cc: Michael Tokarev <[email protected]> Cc: Mark Langsdorf <[email protected]> Andreas Färber (2): ahci: Refactor ports as a fixed-size array for VMState ahci: Add migration support for ICH9 hw/ide/ahci.c | 44 ++++++++++++++++++++++++++++++++++++++++++-- hw/ide/ahci.h | 12 +++++++++++- hw/ide/ich.c | 11 ++++++++--- 3 files changed, 61 insertions(+), 6 deletions(-) -- 1.7.7
