From: Ian Jackson Date: Thu, 16 Oct 2008 09:29:00 +0000 (+0100) Subject: enable usb uhci save/restore X-Git-Tag: xen-3.3.2-rc1~10 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e3721e469b4956730a2733965e3a82ab0ebe51c6;p=qemu-xen-3.3-testing.git enable usb uhci save/restore enables the usb uhci save and restore functions that for some reasons were commented out. Signed-off-by: Stefano Stabellini [ These were commented out in 1e4146791b46f0a798589c58a09f18b2841a9212 aka svn://svn.savannah.nongnu.org/qemu/trunk@3609 c046a42c-6fe2-441c-8c8c-71466251a162 apparently by mistake. This commit reverts 1e414679 -Ian Jackson ] (cherry picked from commit 5f8914edc785ddbd3cae769aa8309c80609c3601) --- diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c index d0be5231..80581d9f 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); }