From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ILXQ9-0002OA-Ne for qemu-devel@nongnu.org; Thu, 16 Aug 2007 00:57:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ILXQ6-0002Mr-Ev for qemu-devel@nongnu.org; Thu, 16 Aug 2007 00:57:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILXQ6-0002Mk-9K for qemu-devel@nongnu.org; Thu, 16 Aug 2007 00:57:18 -0400 Received: from rv-out-0910.google.com ([209.85.198.191]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ILXQ5-0003SZ-P0 for qemu-devel@nongnu.org; Thu, 16 Aug 2007 00:57:17 -0400 Received: by rv-out-0910.google.com with SMTP id g11so269277rvb for ; Wed, 15 Aug 2007 21:57:16 -0700 (PDT) Message-ID: Date: Thu, 16 Aug 2007 12:57:15 +0800 From: "Steven Hu" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: [Qemu-devel] Using OHCI to replace UHCI can improve the USB performance dramatically under windows Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xen-users@lists.xensource.com, qemu-devel@nongnu.org Hello, all Is there anyone interested in the performance of USB under QEMU? I found that when use OHCI to replace UHCI in qemu, it will improve the performance of USB storage device. I have tested it, the performance is almost equal of a real usb device. The way to do this is making little change in the file xen-3.1.0-src/tools/ioemu/hw/pc.c . --- pc.c.original 2007-08-14 14:04:33.000000000 +0800 +++ pc.c 2007-08-08 08:57:33.000000000 +0800 @@ -897,7 +897,9 @@ pci_piix4_acpi_init(pci_bus, piix3_devfn + 2); if (pci_enabled && usb_enabled) { - usb_uhci_init(pci_bus, piix3_devfn + (acpi_enabled ? 3 : 2)); + //usb_uhci_init(pci_bus, piix3_devfn + (acpi_enabled ? 3 : 2)); + //usb_ohci_init(pci_bus, 3, -1); + usb_ohci_init(pci_bus, 3,piix3_devfn + (acpi_enabled ? 3 : 2)); } #ifndef CONFIG_DM There are some issues forLinux guest OS. I am trying to fix it. Is