From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOKNT-00063Y-Sr for qemu-devel@nongnu.org; Fri, 14 Mar 2014 01:09:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOKNM-0007Zv-NB for qemu-devel@nongnu.org; Fri, 14 Mar 2014 01:09:51 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:45664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOKNM-0007ZY-HL for qemu-devel@nongnu.org; Fri, 14 Mar 2014 01:09:44 -0400 Received: by mail-pa0-f43.google.com with SMTP id bj1so2136236pad.30 for ; Thu, 13 Mar 2014 22:09:43 -0700 (PDT) Message-ID: <53228F11.1020801@ozlabs.ru> Date: Fri, 14 Mar 2014 16:09:37 +1100 From: Alexey Kardashevskiy MIME-Version: 1.0 References: <1394088217-4504-1-git-send-email-aik@ozlabs.ru> <87bnxjo2f3.fsf@pixel.localdomain> In-Reply-To: <87bnxjo2f3.fsf@pixel.localdomain> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] usb-ohci: add vmstate descriptor List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mike Day , qemu-devel@nongnu.org, Gerd Hoffmann , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= On 03/07/2014 12:57 AM, Mike Day wrote: > > Alexey Kardashevskiy writes: > >> This adds migration support for OHCI. >> >> Signed-off-by: Alexey Kardashevskiy > > Reviewed-by: Mike Day Thanks! What is next? > >> --- >> hw/usb/hcd-ohci.c | 12 ++++++++++++ >> 1 file changed, 12 insertions(+) >> >> diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c >> index e38cdeb..c42e091 100644 >> --- a/hw/usb/hcd-ohci.c >> +++ b/hw/usb/hcd-ohci.c >> @@ -1984,6 +1984,17 @@ static Property ohci_pci_properties[] = { >> DEFINE_PROP_END_OF_LIST(), >> }; >> >> +static const VMStateDescription vmstate_ohci = { >> + .name = "ohci", >> + .version_id = 1, >> + .minimum_version_id = 1, >> + .minimum_version_id_old = 1, >> + .fields = (VMStateField[]) { >> + VMSTATE_PCI_DEVICE(parent_obj, OHCIPCIState), >> + VMSTATE_END_OF_LIST() >> + } >> +}; >> + >> static void ohci_pci_class_init(ObjectClass *klass, void *data) >> { >> DeviceClass *dc = DEVICE_CLASS(klass); >> @@ -1997,6 +2008,7 @@ static void ohci_pci_class_init(ObjectClass *klass, void *data) >> set_bit(DEVICE_CATEGORY_USB, dc->categories); >> dc->desc = "Apple USB Controller"; >> dc->props = ohci_pci_properties; >> + dc->vmsd = &vmstate_ohci; >> } >> >> static const TypeInfo ohci_pci_info = { >> -- >> 1.8.4.rc4 >> >> > -- Alexey