From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kho5V-00046t-8s for qemu-devel@nongnu.org; Mon, 22 Sep 2008 12:16:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kho5T-00044h-Nx for qemu-devel@nongnu.org; Mon, 22 Sep 2008 12:16:36 -0400 Received: from [199.232.76.173] (port=41455 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kho5T-00044S-DF for qemu-devel@nongnu.org; Mon, 22 Sep 2008 12:16:35 -0400 Received: from e35.co.us.ibm.com ([32.97.110.153]:57720) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kho5S-0001z5-Ph for qemu-devel@nongnu.org; Mon, 22 Sep 2008 12:16:35 -0400 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e35.co.us.ibm.com (8.13.8/8.13.8) with ESMTP id m8MGGV1f007781 for ; Mon, 22 Sep 2008 12:16:31 -0400 Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id m8MGGKP7215998 for ; Mon, 22 Sep 2008 10:16:29 -0600 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m8MGGJ3P017415 for ; Mon, 22 Sep 2008 10:16:19 -0600 Message-ID: <48D7C498.4040802@us.ibm.com> Date: Mon, 22 Sep 2008 11:15:20 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <20080922154927.GA15498@dmt.cnet> In-Reply-To: <20080922154927.GA15498@dmt.cnet> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: LSI SCSI: raise UDC on infinite loop Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marcelo Tosatti Cc: qemu-devel@nongnu.org, Paul Brook Marcelo Tosatti wrote: > (resending with Signed-off-by) > > ----- > > Raise UDC (Unexpected Disconnect) when a large enough number of > instructions has been executed by the SCRIPTS processor. This "solution" > is much simpler than temporarily interrupting execution. > > This remedies the situation with Windows which downloads SCRIPTS code > that busy loops on guest main memory. Their drivers _do_ handle UDC > appropriately (at least XP and 2003). > > It would be nicer to actually detect infinite loops, but until then, > this bandaid seems acceptable. > > Since the situation seems to be rare enough, raise the number > of instructions to 10000 (previously 1000). > > Three people other than myself had success with this patch. > > Signed-off-by: Marcelo Tosatti > > Applied. Thanks. Regards, Anthony Liguori