From: Mike Day <ncmike@ncultra.org>
To: Alexey Kardashevskiy <aik@ozlabs.ru>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] usb-ohci: add vmstate descriptor
Date: Thu, 06 Mar 2014 08:57:20 -0500 [thread overview]
Message-ID: <87bnxjo2f3.fsf@pixel.localdomain> (raw)
In-Reply-To: <1394088217-4504-1-git-send-email-aik@ozlabs.ru>
Alexey Kardashevskiy <aik@ozlabs.ru> writes:
> This adds migration support for OHCI.
>
> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Mike Day <ncmike@ncultra.org>
> ---
> 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
>
>
next prev parent reply other threads:[~2014-03-06 13:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-06 6:43 [Qemu-devel] [PATCH] usb-ohci: add vmstate descriptor Alexey Kardashevskiy
2014-03-06 13:57 ` Mike Day [this message]
2014-03-14 5:09 ` Alexey Kardashevskiy
2014-03-22 20:18 ` Andreas Färber
2014-03-22 20:54 ` Peter Maydell
2014-03-22 21:04 ` Andreas Färber
2014-03-22 21:23 ` Peter Maydell
2014-03-24 5:53 ` Alexey Kardashevskiy
2014-03-24 9:26 ` Peter Maydell
2014-03-24 10:26 ` Gerd Hoffmann
2014-03-22 21:50 ` Alexey Kardashevskiy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bnxjo2f3.fsf@pixel.localdomain \
--to=ncmike@ncultra.org \
--cc=aik@ozlabs.ru \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.