Patchwork [3/3] ehci doesn't support migration

login
register
mail settings
Submitter Gerd Hoffmann
Date July 8, 2011, 8:53 a.m.
Message ID <1310115239-19288-4-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/103788/
State New
Headers show

Comments

Gerd Hoffmann - July 8, 2011, 8:53 a.m.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/usb-ehci.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c
index 91fb7de..a0449be 100644
--- a/hw/usb-ehci.c
+++ b/hw/usb-ehci.c
@@ -2136,9 +2136,15 @@  static USBBusOps ehci_bus_ops = {
     .device_destroy = ehci_device_destroy,
 };
 
+static const VMStateDescription vmstate_ehci = {
+    .name = "ehci",
+    .no_migrate = 1,
+};
+
 static PCIDeviceInfo ehci_info = {
     .qdev.name    = "usb-ehci",
     .qdev.size    = sizeof(EHCIState),
+    .qdev.vmsd    = &vmstate_ehci,
     .init         = usb_ehci_initfn,
     .vendor_id    = PCI_VENDOR_ID_INTEL,
     .device_id    = PCI_DEVICE_ID_INTEL_82801D,