Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DGweZ-0007mC-T6 for qemu-devel@nongnu.org; Thu, 31 Mar 2005 05:11:57 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DGwZ0-0006CL-PZ for qemu-devel@nongnu.org; Thu, 31 Mar 2005 05:06:11 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGwW4-0004eD-IX for qemu-devel@nongnu.org; Thu, 31 Mar 2005 05:03:08 -0500 Received: from [69.17.117.27] (helo=mail25.sea5.speakeasy.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1DGw1m-0007Fk-LA for qemu-devel@nongnu.org; Thu, 31 Mar 2005 04:31:50 -0500 Received: from dsl081-088-222.lax1.dsl.speakeasy.net (HELO [192.168.111.2]) ([64.81.88.222]) (envelope-sender ) by mail25.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 31 Mar 2005 09:31:46 -0000 Subject: Re: [Qemu-devel] Re: Suggestion - trap window-close of VM From: "John R. Hogerhuis" In-Reply-To: <424B1D7D.2030707@praguespringpeople.org> References: <4247EBB0.6090409@praguespringpeople.org> <200503292352.20141.paul@codesourcery.com> <424A9994.1070508@praguespringpeople.org> <20050330124816.GA10714@xi.wantstofly.org> <424AA90A.1060103@praguespringpeople.org> <20050330182255.GA11868@xi.wantstofly.org> <424B093A.80202@win4lin.com> <424B1D7D.2030707@praguespringpeople.org> Content-Type: text/plain Date: Thu, 31 Mar 2005 01:32:31 -0800 Message-Id: <1112261551.14612.110.camel@aragorn> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Reply-To: jhoger@pobox.com, 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 I suppose there's a reason, but why not trigger or set a flag on actual HLT instruction executed (while interrupts disabled)? That would avoid the kludge of peeking behind the instruction pointer. I'm no expert, but perhaps such flag is already part of the CPU emulation and can simply be read? If not it doesn't seem like such a bad feature to add... -- John.