summaryrefslogtreecommitdiff
path: root/hw/ide/ahci.h
diff options
context:
space:
mode:
authorJason Baron <jbaron@redhat.com>2013-01-04 14:44:42 -0500
committerKevin Wolf <kwolf@redhat.com>2013-01-25 18:18:36 +0100
commita26230218d7d66ec5cb1aec101ceaf0e7400ef7f (patch)
tree7e778e85954edf8a6e3bb27e04d6fe0557605d09 /hw/ide/ahci.h
parent4ac557c89b04d506c876a0a378e815d822261c8a (diff)
downloadqemu-a26230218d7d66ec5cb1aec101ceaf0e7400ef7f.tar.gz
ahci: Add migration support
Jason tested these patches by migrating Windows 7 and Fedora 17 guests (while under I/O) on both piix with ahci attached and on q35 (which has a built-in AHCI controller). Signed-off-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Jason Baron <jbaron@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/ide/ahci.h')
-rw-r--r--hw/ide/ahci.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/hw/ide/ahci.h b/hw/ide/ahci.h
index 70d3b57adf..85f37fe99d 100644
--- a/hw/ide/ahci.h
+++ b/hw/ide/ahci.h
@@ -305,6 +305,16 @@ typedef struct AHCIPCIState {
AHCIState ahci;
} AHCIPCIState;
+extern const VMStateDescription vmstate_ahci;
+
+#define VMSTATE_AHCI(_field, _state) { \
+ .name = (stringify(_field)), \
+ .size = sizeof(AHCIState), \
+ .vmsd = &vmstate_ahci, \
+ .flags = VMS_STRUCT, \
+ .offset = vmstate_offset_value(_state, _field, AHCIState), \
+}
+
typedef struct NCQFrame {
uint8_t fis_type;
uint8_t c;