From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Khmnq-0005bk-2x for qemu-devel@nongnu.org; Mon, 22 Sep 2008 10:54:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Khmno-0005b6-DT for qemu-devel@nongnu.org; Mon, 22 Sep 2008 10:54:17 -0400 Received: from [199.232.76.173] (port=40003 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Khmno-0005b1-6p for qemu-devel@nongnu.org; Mon, 22 Sep 2008 10:54:16 -0400 Received: from ey-out-1920.google.com ([74.125.78.150]:40429) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Khmnn-00019Q-OT for qemu-devel@nongnu.org; Mon, 22 Sep 2008 10:54:15 -0400 Received: by ey-out-1920.google.com with SMTP id 4so390372eyk.4 for ; Mon, 22 Sep 2008 07:54:14 -0700 (PDT) Message-ID: <48D7B15C.6010607@codemonkey.ws> Date: Mon, 22 Sep 2008 09:53:16 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] LSI SCSI: raise UDC on infinite loop (resend #1) References: <20080912123831.GA22472@dmt.cnet> In-Reply-To: <20080912123831.GA22472@dmt.cnet> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Cc: Marcelo Tosatti , Paul Brook Hi Marcelo, Marcelo Tosatti wrote: > 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. > Please add a Signed-off-by and I'll apply this patch. I don't know that Paul has gotten a chance to look yet but we talked in IRC a while ago and he mentioned that it's probably the best solution we'll be able to come up with so that seems to suggest to me that it's safe to apply. Regards, Anthony Liguori