Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KhoIy-0005ph-SJ for qemu-devel@nongnu.org; Mon, 22 Sep 2008 12:30:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KhoIx-0005om-3f for qemu-devel@nongnu.org; Mon, 22 Sep 2008 12:30:32 -0400 Received: from [199.232.76.173] (port=54116 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KhoIw-0005oc-Q3 for qemu-devel@nongnu.org; Mon, 22 Sep 2008 12:30:30 -0400 Received: from savannah.gnu.org ([199.232.41.3]:33995 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KhoIw-0008GZ-EP for qemu-devel@nongnu.org; Mon, 22 Sep 2008 12:30:30 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KhoIv-0007Nu-SR for qemu-devel@nongnu.org; Mon, 22 Sep 2008 16:30:30 +0000 Received: from pbrook by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KhoIv-0007Nq-H8 for qemu-devel@nongnu.org; Mon, 22 Sep 2008 16:30:29 +0000 MIME-Version: 1.0 Errors-To: pbrook Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Paul Brook Message-Id: Date: Mon, 22 Sep 2008 16:30:29 +0000 Subject: [Qemu-devel] [5295] Add comment to windows SCSI hack. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5295 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5295 Author: pbrook Date: 2008-09-22 16:30:29 +0000 (Mon, 22 Sep 2008) Log Message: ----------- Add comment to windows SCSI hack. Modified Paths: -------------- trunk/hw/lsi53c895a.c Modified: trunk/hw/lsi53c895a.c =================================================================== --- trunk/hw/lsi53c895a.c 2008-09-22 16:29:18 UTC (rev 5294) +++ trunk/hw/lsi53c895a.c 2008-09-22 16:30:29 UTC (rev 5295) @@ -1199,6 +1199,11 @@ } } if (insn_processed > 10000 && !s->waiting) { + /* Some windows drivers make the device spin waiting for a memory + location to change. If we have been executed a lot of code then + assume this is the case and force an unexpected device disconnect. + This is apparently sufficient to beat the drivers into submission. + */ if (!(s->sien0 & LSI_SIST0_UDC)) fprintf(stderr, "inf. loop with UDC masked\n"); lsi_script_scsi_interrupt(s, LSI_SIST0_UDC, 0);