All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ehci: Kick async schedule on wakeup in the non companion case
@ 2012-07-06 14:53 ` Hans de Goede
  0 siblings, 0 replies; 6+ messages in thread
From: Hans de Goede @ 2012-07-06 14:53 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel, kvm, Hans de Goede

Commit 0f588df8b3688b00e77aabaa32e26ece5f19bd39, added code
to ehci_wakeup to kick the async schedule on wakeup, but the else
was positioned wrong making it trigger for devices which are routed
to the companion rather then to the ehci controller itself.

This patch fixes this. Note that the "programming style" with using the
return at the end of the companion block matches how the companion case
is handled in the other ports ops, and is done this way for consistency.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 hw/usb/hcd-ehci.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c
index 401ccec..b68a8ce 100644
--- a/hw/usb/hcd-ehci.c
+++ b/hw/usb/hcd-ehci.c
@@ -852,10 +852,11 @@ static void ehci_wakeup(USBPort *port)
         USBPort *companion = s->companion_ports[port->index];
         if (companion->ops->wakeup) {
             companion->ops->wakeup(companion);
-        } else {
-            qemu_bh_schedule(s->async_bh);
         }
+        return;
     }
+
+    qemu_bh_schedule(s->async_bh);
 }
 
 static int ehci_register_companion(USBBus *bus, USBPort *ports[],
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [Qemu-devel] [PATCH] ehci: Kick async schedule on wakeup in the non companion case
@ 2012-07-06 14:53 ` Hans de Goede
  0 siblings, 0 replies; 6+ messages in thread
From: Hans de Goede @ 2012-07-06 14:53 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: Hans de Goede, qemu-devel, kvm

Commit 0f588df8b3688b00e77aabaa32e26ece5f19bd39, added code
to ehci_wakeup to kick the async schedule on wakeup, but the else
was positioned wrong making it trigger for devices which are routed
to the companion rather then to the ehci controller itself.

This patch fixes this. Note that the "programming style" with using the
return at the end of the companion block matches how the companion case
is handled in the other ports ops, and is done this way for consistency.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 hw/usb/hcd-ehci.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c
index 401ccec..b68a8ce 100644
--- a/hw/usb/hcd-ehci.c
+++ b/hw/usb/hcd-ehci.c
@@ -852,10 +852,11 @@ static void ehci_wakeup(USBPort *port)
         USBPort *companion = s->companion_ports[port->index];
         if (companion->ops->wakeup) {
             companion->ops->wakeup(companion);
-        } else {
-            qemu_bh_schedule(s->async_bh);
         }
+        return;
     }
+
+    qemu_bh_schedule(s->async_bh);
 }
 
 static int ehci_register_companion(USBBus *bus, USBPort *ports[],
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] ehci: Kick async schedule on wakeup in the non companion case
  2012-07-06 14:53 ` [Qemu-devel] " Hans de Goede
@ 2012-07-09  8:00   ` Gerd Hoffmann
  -1 siblings, 0 replies; 6+ messages in thread
From: Gerd Hoffmann @ 2012-07-09  8:00 UTC (permalink / raw)
  To: Hans de Goede; +Cc: qemu-devel, kvm

On 07/06/12 16:53, Hans de Goede wrote:
> Commit 0f588df8b3688b00e77aabaa32e26ece5f19bd39, added code
> to ehci_wakeup to kick the async schedule on wakeup, but the else
> was positioned wrong making it trigger for devices which are routed
> to the companion rather then to the ehci controller itself.
> 
> This patch fixes this. Note that the "programming style" with using the
> return at the end of the companion block matches how the companion case
> is handled in the other ports ops, and is done this way for consistency.

Added to usb patch queue.

thanks,
  Gerd


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [PATCH] ehci: Kick async schedule on wakeup in the non companion case
@ 2012-07-09  8:00   ` Gerd Hoffmann
  0 siblings, 0 replies; 6+ messages in thread
From: Gerd Hoffmann @ 2012-07-09  8:00 UTC (permalink / raw)
  To: Hans de Goede; +Cc: qemu-devel, kvm

On 07/06/12 16:53, Hans de Goede wrote:
> Commit 0f588df8b3688b00e77aabaa32e26ece5f19bd39, added code
> to ehci_wakeup to kick the async schedule on wakeup, but the else
> was positioned wrong making it trigger for devices which are routed
> to the companion rather then to the ehci controller itself.
> 
> This patch fixes this. Note that the "programming style" with using the
> return at the end of the companion block matches how the companion case
> is handled in the other ports ops, and is done this way for consistency.

Added to usb patch queue.

thanks,
  Gerd

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Issue with mouse-capture
  2012-07-09  8:00   ` [Qemu-devel] " Gerd Hoffmann
  (?)
@ 2012-07-09  8:16   ` Veruca Salt
  2012-07-11  8:19     ` Veruca Salt
  -1 siblings, 1 reply; 6+ messages in thread
From: Veruca Salt @ 2012-07-09  8:16 UTC (permalink / raw)
  To: QEMU-KVM Mailing List



I realise you guys are very busy, but I'm about to go into the Qemu-kvm code seriously for the first time; I have to try and fix an irritating little issue whereby on all settings(including maximised and no frame) our Virtual Machine requires a manual click to capture the mouse.
We're using 32 bit XP and 64 bit Windows 7 on a 64 bit linux host.

Before I start making an unholy mess of your code, can anybody point me in the direction of the most likely areas to check?
I want to do this using 1.0; we aren't planning to move to 1.1 just yet, as the USB changes would require extra integration and device-level changes/installations to our VM's.

Look forward to hearing from you.

Simon O'Riordan
 		 	   		  

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Issue with mouse-capture
  2012-07-09  8:16   ` Issue with mouse-capture Veruca Salt
@ 2012-07-11  8:19     ` Veruca Salt
  0 siblings, 0 replies; 6+ messages in thread
From: Veruca Salt @ 2012-07-11  8:19 UTC (permalink / raw)
  To: QEMU-KVM Mailing List


DMY guys.
I've sorted it.
We're happy now.

----------------------------------------
> From: verucasaltuk@hotmail.co.uk
> To: kvm@vger.kernel.org
> Subject: Issue with mouse-capture
> Date: Mon, 9 Jul 2012 08:16:10 +0000
>
>
>
> I realise you guys are very busy, but I'm about to go into the Qemu-kvm code seriously for the first time; I have to try and fix an irritating little issue whereby on all settings(including maximised and no frame) our Virtual Machine requires a manual click to capture the mouse.
> We're using 32 bit XP and 64 bit Windows 7 on a 64 bit linux host.
>
> Before I start making an unholy mess of your code, can anybody point me in the direction of the most likely areas to check?
> I want to do this using 1.0; we aren't planning to move to 1.1 just yet, as the USB changes would require extra integration and device-level changes/installations to our VM's.
>
> Look forward to hearing from you.
>
> Simon O'Riordan
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
 		 	   		  

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-07-11  8:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-06 14:53 [PATCH] ehci: Kick async schedule on wakeup in the non companion case Hans de Goede
2012-07-06 14:53 ` [Qemu-devel] " Hans de Goede
2012-07-09  8:00 ` Gerd Hoffmann
2012-07-09  8:00   ` [Qemu-devel] " Gerd Hoffmann
2012-07-09  8:16   ` Issue with mouse-capture Veruca Salt
2012-07-11  8:19     ` Veruca Salt

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.