Patchwork [3/9] ahci doesn't support migration

login
register
mail settings
Submitter Gerd Hoffmann
Date July 20, 2011, 10:09 a.m.
Message ID <1311156579-9814-4-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/105629/
State New
Headers show

Comments

Gerd Hoffmann - July 20, 2011, 10:09 a.m.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/ide/ich.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/ide/ich.c b/hw/ide/ich.c
index 054e073..d241ea8 100644
--- a/hw/ide/ich.c
+++ b/hw/ide/ich.c
@@ -72,6 +72,11 @@ 
 #include <hw/ide/pci.h>
 #include <hw/ide/ahci.h>
 
+static const VMStateDescription vmstate_ahci = {
+    .name = "ahci",
+    .unmigratable = 1,
+};
+
 static int pci_ich9_ahci_init(PCIDevice *dev)
 {
     struct AHCIPCIState *d;
@@ -123,6 +128,7 @@  static PCIDeviceInfo ich_ahci_info[] = {
         .qdev.name    = "ich9-ahci",
         .qdev.alias   = "ahci",
         .qdev.size    = sizeof(AHCIPCIState),
+        .qdev.vmsd    = &vmstate_ahci,
         .init         = pci_ich9_ahci_init,
         .exit         = pci_ich9_uninit,
         .config_write = pci_ich9_write_config,