From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G8TkM-0002Cb-6q for qemu-devel@nongnu.org; Wed, 02 Aug 2006 23:19:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G8TkJ-0002C1-Hx for qemu-devel@nongnu.org; Wed, 02 Aug 2006 23:19:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G8TkJ-0002By-Ct for qemu-devel@nongnu.org; Wed, 02 Aug 2006 23:19:39 -0400 Received: from [211.5.2.79] (helo=nm01omta01b.dion.ne.jp) by monty-python.gnu.org with smtp (Exim 4.52) id 1G8TnY-0007Xe-QG for qemu-devel@nongnu.org; Wed, 02 Aug 2006 23:23:01 -0400 Message-ID: <000401c6b6ab$a7042f50$0464a8c0@athlon> From: "Kazu" Subject: [Qemu-devel] Workaround for windbg Date: Thu, 3 Aug 2006 12:19:38 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" 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 Hi, My previous patch is not enough to use windbg. A rate of loop in main_loop in vl.c drops a lot. The rate does not drop for Fedora Core 4 guest but not good for RedHat 7.2 and Windows 2000. It is expected at least 1000 cycles/sec, but the rate drops to 130 cycles/sec while CPU load is high. It is the case while OS is booting. The rate is slow so that a communication through serial line is slow. I made a workaround for it and checked the data sending/receiving rate by it. The patch exits CPU loop in cpu_exec every 100 times and handle I/O of serial data. The rate of loop in main_loop is about 30000 cycles/sec. Win2k booting time with windbg is much improved. The patch is not efficient so it can only be used for windbg. It seems that cpu_interrupt does not work while CPU load is high depending on a guest OS. Binary. http://www.h6.dion.ne.jp/~kazuw/qemu-win/qemu-0.8.2-windbg.zip Patch. http://www.h7.dion.ne.jp/~qemu-win/download/qemu-20060730-windbg.patch Regards, Kazu