From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: [PATCH 2 of 2 ] qemu-remote: enable usb uhci save\restore
Date: Wed, 15 Oct 2008 18:03:50 +0100 [thread overview]
Message-ID: <48F62276.3010107@eu.citrix.com> (raw)
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
---
diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c
index d0be523..80581d9 100644
--- a/hw/usb-uhci.c
+++ b/hw/usb-uhci.c
@@ -157,7 +157,6 @@ static void uhci_reset(UHCIState *s)
}
}
-#if 0
static void uhci_save(QEMUFile *f, void *opaque)
{
UHCIState *s = opaque;
@@ -209,7 +208,6 @@ static int uhci_load(QEMUFile *f, void *opaque, int version_id)
return 0;
}
-#endif
static void uhci_ioport_writeb(void *opaque, uint32_t addr, uint32_t val)
{
@@ -935,6 +933,7 @@ void usb_uhci_piix3_init(PCIBus *bus, int devfn)
to rely on this. */
pci_register_io_region(&s->dev, 4, 0x20,
PCI_ADDRESS_SPACE_IO, uhci_map);
+ register_savevm("UHCI usb controller", 0, 1, uhci_save, uhci_load, s);
}
void usb_uhci_piix4_init(PCIBus *bus, int devfn)
@@ -970,4 +969,5 @@ void usb_uhci_piix4_init(PCIBus *bus, int devfn)
to rely on this. */
pci_register_io_region(&s->dev, 4, 0x20,
PCI_ADDRESS_SPACE_IO, uhci_map);
+ register_savevm("UHCI usb controller", 0, 1, uhci_save, uhci_load, s);
}
reply other threads:[~2008-10-15 17:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=48F62276.3010107@eu.citrix.com \
--to=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/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.