diff options
author | Jason Baron <jbaron@redhat.com> | 2013-01-04 14:44:42 -0500 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-01-25 18:18:36 +0100 |
commit | a26230218d7d66ec5cb1aec101ceaf0e7400ef7f (patch) | |
tree | 7e778e85954edf8a6e3bb27e04d6fe0557605d09 /hw/ide/ahci.h | |
parent | 4ac557c89b04d506c876a0a378e815d822261c8a (diff) | |
download | qemu-a26230218d7d66ec5cb1aec101ceaf0e7400ef7f.zip qemu-a26230218d7d66ec5cb1aec101ceaf0e7400ef7f.tar.gz qemu-a26230218d7d66ec5cb1aec101ceaf0e7400ef7f.tar.bz2 |
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.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hw/ide/ahci.h b/hw/ide/ahci.h index 70d3b57..85f37fe 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; |