From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWkXO-0005q6-LH for qemu-devel@nongnu.org; Fri, 09 Nov 2012 04:06:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWkXD-0001C5-7w for qemu-devel@nongnu.org; Fri, 09 Nov 2012 04:06:06 -0500 Received: from mx1.redhat.com ([209.132.183.28]:33785) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWkXC-0001B9-Vv for qemu-devel@nongnu.org; Fri, 09 Nov 2012 04:05:55 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qA995rfA019066 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 9 Nov 2012 04:05:54 -0500 From: Gerd Hoffmann Date: Fri, 9 Nov 2012 10:05:51 +0100 Message-Id: <1352451951-9407-9-git-send-email-kraxel@redhat.com> In-Reply-To: <1352451951-9407-1-git-send-email-kraxel@redhat.com> References: <1352451951-9407-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 8/8] ehci: fix migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Commit 5010d4dc618b6b8e7c21129c487c06f6493f71fc reorganized vmstate to split core + pci, but got two little details wrong. Fix them. Signed-off-by: Gerd Hoffmann --- hw/usb/hcd-ehci-pci.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/usb/hcd-ehci-pci.c b/hw/usb/hcd-ehci-pci.c index d5c7d46..fe45a1f 100644 --- a/hw/usb/hcd-ehci-pci.c +++ b/hw/usb/hcd-ehci-pci.c @@ -91,6 +91,7 @@ static const VMStateDescription vmstate_ehci_pci = { .fields = (VMStateField[]) { VMSTATE_PCI_DEVICE(pcidev, EHCIPCIState), VMSTATE_STRUCT(ehci, EHCIPCIState, 2, vmstate_ehci, EHCIState), + VMSTATE_END_OF_LIST() } }; @@ -105,7 +106,7 @@ static void ehci_class_init(ObjectClass *klass, void *data) k->device_id = i->device_id; k->revision = i->revision; k->class_id = PCI_CLASS_SERIAL_USB; - dc->vmsd = &vmstate_ehci; + dc->vmsd = &vmstate_ehci_pci; dc->props = ehci_pci_properties; } -- 1.7.1