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 <kw...@redhat.com> Cc: Juan Quintela <quint...@redhat.com> Cc: Alexander Graf <ag...@suse.de> Cc: Michael Tokarev <m...@tls.msk.ru> Cc: Mark Langsdorf <mark.langsd...@calxeda.com> 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