From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerd Hoffmann Subject: Re: [patch 2/2] support for UHCI suspend / remote wake up Date: Wed, 01 Dec 2010 18:17:47 +0100 Message-ID: <4CF6833B.7000103@redhat.com> References: <20101125170439.548474575@redhat.com> <20101125170602.676792336@redhat.com> <4CF665CE.70600@redhat.com> <20101201165821.GA13677@amt.cnet> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: qemu-devel@nongnu.org, kvm , Matthew Garrett , Adam Jackson , Glauber de Oliveira Costa To: Marcelo Tosatti Return-path: Received: from mx1.redhat.com ([209.132.183.28]:58554 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755399Ab0LARRy (ORCPT ); Wed, 1 Dec 2010 12:17:54 -0500 In-Reply-To: <20101201165821.GA13677@amt.cnet> Sender: kvm-owner@vger.kernel.org List-ID: > I was seeing bus disconnects when not clearing port resume bit properly. > >>> port->ctrl&= ~(val& 0x000a); >>> + port->ctrl&= ~(port->ctrl& 0x0040); /* clear port resume detected */ >>> } >> >> This chunk looks suspicious ... >> >> I suspect the port suspend/resume emulation isn't complete. The bug is that the port resume bit is masked out from guest writes, so the guest hasn't a chance to clear it ... cheers, Gerd PS: http://cgit.freedesktop.org/spice/qemu/log/?h=usb.1