Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C73NJ-00071F-DG for qemu-devel@nongnu.org; Mon, 13 Sep 2004 22:48:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C73NI-000713-Jx for qemu-devel@nongnu.org; Mon, 13 Sep 2004 22:48:57 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C73NI-00070z-GW for qemu-devel@nongnu.org; Mon, 13 Sep 2004 22:48:56 -0400 Received: from [67.43.0.32] (helo=cell03.cell03.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C73HZ-0003aF-Ju for qemu-devel@nongnu.org; Mon, 13 Sep 2004 22:43:01 -0400 Received: from digitale by cell03.cell03.com with local (Exim 4.34) id 1C73HY-0002wj-9V for qemu-devel@nongnu.org; Mon, 13 Sep 2004 22:43:00 -0400 From: "EricNorthup" Subject: re: [Qemu-devel] Host API escape MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Message-Id: Date: Mon, 13 Sep 2004 22:43:00 -0400 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 On Mon, 13 Sep 2004 23:45:07 +0100, Derek Fawcus wrote: >On Mon, Sep 13, 2004 at 11:16:14PM +0200, Fabrice Bellard wrote: >> Derek Fawcus wrote: >> > I was adding a fake instruction > >So will you at all interested in this bit, want to wait for it to >cook some more first, or not interested? > >It's basically a "new" instruction, using opcodes that should normally >generate undefined/illegal opcode traps, hence it should still be >usable >(in some form) if/when doing fast/native x86-on-x86. The point > being to provide a a controlled escape to talk with the host - therefore it's > called "hostapi"... [. . .] Ok, I think the things you can achieve with this mechanism are very exciting. But please, *please* do not make another fork in x86! What if you use the WRMSR instructions instead? Then you can define MSRs which have certain behavior when written to / read from. The whole point of MSRs is that they are model-specific, and that is the way to do this compatibly. Just a suggestion --Eric