Lonnie Mendez wrote:

There is some funkiness going on with removing the device in the linux guest once attached. Not sure what it is yet.

  This problem is addressed in the attached patch.
--- a/qemu/hw/usb-uhci.c        2006-04-21 11:15:40.000000000 -0500
+++ b/qemu/hw/usb-uhci.c        2006-04-21 12:57:04.000000000 -0500
@@ -382,8 +392,9 @@
     } else {
         port = &s->ports[portnum];
         /* set connect status */
-        if (!(port->ctrl & UHCI_PORT_CCS)) {
-            port->ctrl |= UHCI_PORT_CCS | UHCI_PORT_CSC;
+        if (port->ctrl & UHCI_PORT_CCS) {
+            port->ctrl &= ~UHCI_PORT_CCS;
+            port->ctrl |= UHCI_PORT_CSC;
         }
         /* disable port */
         if (port->ctrl & UHCI_PORT_EN) {
_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Reply via email to