From owner-freebsd-emulation@FreeBSD.ORG Wed May 7 08:14:20 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4AE7A1065675 for ; Wed, 7 May 2008 08:14:20 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from fallbackmx10.syd.optusnet.com.au (fallbackmx10.syd.optusnet.com.au [211.29.132.251]) by mx1.freebsd.org (Postfix) with ESMTP id 2BCD38FC1B for ; Wed, 7 May 2008 08:14:16 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail04.syd.optusnet.com.au (mail04.syd.optusnet.com.au [211.29.132.185]) by fallbackmx10.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m475t9es025621 for ; Wed, 7 May 2008 15:55:09 +1000 Received: from besplex.bde.org (c220-239-252-11.carlnfd3.nsw.optusnet.com.au [220.239.252.11]) by mail04.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m475su8L028734 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 7 May 2008 15:54:59 +1000 Date: Wed, 7 May 2008 15:54:56 +1000 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Bakul Shah In-Reply-To: <20080506204511.E1A945B3B@mail.bitblocks.com> Message-ID: <20080507154914.W52560@besplex.bde.org> References: <20080506204511.E1A945B3B@mail.bitblocks.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-emulation@FreeBSD.org Subject: Re: seems I finally found what upset kqemu on amd64 SMP... shared gdt! (please test patch :) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 May 2008 08:14:20 -0000 On Tue, 6 May 2008, Bakul Shah wrote: > On Tue, 06 May 2008 22:02:28 +0200 Teufel wrote: >> Bakul Shah wrote: >>>> at needs to be done to fix that? >>> >>> Comment it out in amd64/amd64/trap.c! Bletch. >> getting rid of the message, yes.. but without further issues? > > The message is there "because you are not supposed to do it" s/you/kqemu/ (or interpret what you are not supposed to do as "running kqemu". > See for instance > > http://docs.freebsd.org/cgi/getmsg.cgi?fetch=100953+0+archive/2007/freebsd-emulation/20070415.freebsd-emulation > > This seems to have not caused any problem in practice. And > any way taking out the message doesn't change the essential > behavior (the invariant is still broken) but it can speed up > your emulation considerably. I should have changed it to a panic long ago. That would give the correct number of messages (1) :-). i386 still doesn't even print a message (perhaps it never did). The bug would probably never have existed in any FreeBSD version of kqemu if i386 had had enough invariant checking. Bruce