From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DGSAN-0007iT-A1 for qemu-devel@nongnu.org; Tue, 29 Mar 2005 20:38:43 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DGSAH-0007g7-CP for qemu-devel@nongnu.org; Tue, 29 Mar 2005 20:38:40 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGSAH-0007fA-2r for qemu-devel@nongnu.org; Tue, 29 Mar 2005 20:38:37 -0500 Received: from [64.233.184.195] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DGRph-0001HT-UI for qemu-devel@nongnu.org; Tue, 29 Mar 2005 20:17:22 -0500 Received: by wproxy.gmail.com with SMTP id 67so1440106wri for ; Tue, 29 Mar 2005 17:17:20 -0800 (PST) Message-ID: Date: Tue, 29 Mar 2005 19:17:20 -0600 From: Ryan Rempel Subject: Re: [Qemu-devel] Re: Suggestion - trap window-close of VM In-Reply-To: <200503292352.20141.paul@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <4247EBB0.6090409@praguespringpeople.org> <200503292352.20141.paul@codesourcery.com> Reply-To: Ryan Rempel , 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 On Tue, 29 Mar 2005 23:52:19 +0100, Paul Brook wrote: > > This isn't working quite right for me with a Windows 98 guest -- it > > traps the attempt to close the window all right, but it doesn't let > > the window close even when Window 98 has in fact shut down. > > As far as qemu is concerned there's nothing special about windows being "shut > down". ie. it's not possible to tell if windows is doing something useful, or > just sitting there waiting for you to turn it off. Just to clarify, I was commenting on Struan's patch, which does try to determine whether windows is "shut down" -- his patch seems to work with a Windows 2000 guest, but not a Windows 98 guest (he reported the former, I was reporting the latter). > > I wonder > > whether this is related to the "Windows 98 doesn't use the HLT > > instruction" problem that is noted elsewhere (since that apparently > > doesn't affect Windows 2000). > > No. the HLT thing is just windows 9x being crap. It also happens on real > hardware. > > In theory windows should be able to "turn off" qemu using APM, like it does on > real machines. However there seem to be bugs in the qemu implementation that > stop this working. Again to clarify, qemu does ordinarily quit as expected when I shut down a Windows 98 guest -- I was commenting specifically on Struan's patch, rather than qemu's normal behaviour. I was speculating that the HLT instruction might have an impact on Struan's method to detect whether windows had shut down (since it was a known difference between Windows 98 and 2000), but I may well be barking up the wrong tree there.