From owner-freebsd-current@FreeBSD.ORG Mon Jul 23 10:53:26 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB15D16A421 for ; Mon, 23 Jul 2007 10:53:26 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.225]) by mx1.freebsd.org (Postfix) with ESMTP id 8F2B913C458 for ; Mon, 23 Jul 2007 10:53:26 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so1295889wxd for ; Mon, 23 Jul 2007 03:53:25 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=gaYYt0SbvaguQ0e8nmXxJZESPylKHruIVPQB7hJOQzxIC8viqe5cMMGlFBnerjPUKcmATIQ7VlqgXpm/E9Tp2iG9PMKPxxL3urNuBdK+yIjG2Z8SO/34qGLXYQdqPSlHf/PHgxP+NVBTGW8ekdVP1Sv9WLUr5FC2vNVR/iKSdsM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=Qqwe5tz0iJwuYzX44DvnF0A+5K2+Mt96DmEQItGLxgYEYsh4SOFrCxCiOhxy8d2h+9Ujw3e5NVBcXbMMjMVbb8f8za1UF1u7XhceRTwR3HHXjc4MGYYkiPvNPEuybtWoQZaei+SLD0y+LqSlU6pz27fP9+BQ226u8ADgAHGt6uI= Received: by 10.78.178.5 with SMTP id a5mr731750huf.1185188004427; Mon, 23 Jul 2007 03:53:24 -0700 (PDT) Received: from ?172.31.5.25? ( [89.97.252.178]) by mx.google.com with ESMTPS id 30sm3183784hue.2007.07.23.03.53.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 23 Jul 2007 03:53:23 -0700 (PDT) Message-ID: <46A48870.2080202@FreeBSD.org> Date: Mon, 23 Jul 2007 12:52:32 +0200 From: Attilio Rao User-Agent: Thunderbird 1.5 (X11/20060526) MIME-Version: 1.0 To: Teufel References: <200707131834.27131.h.schmalzbauer@omnisec.de> <4697CCEB.9080707@FreeBSD.org> <200707132155.43783.h.schmalzbauer@omnisec.de> <4698E7C4.9080001@FreeBSD.org> <469B3491.2000402@kuehlbox.de> In-Reply-To: <469B3491.2000402@kuehlbox.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: Attilio Rao Cc: emulation@FreeBSD.org, current@FreeBSD.org Subject: Re: kqemu crash (page fault) with -current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: attilio@FreeBSD.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jul 2007 10:53:26 -0000 Teufel wrote: > Hi Attilio, > > well, I am not Harry, but I have downloaded also your patch and compiled > it with yesterdays CURRENT CVS, launched a portsnap fetch update and > build kqemu + qemu from the ports without any changes to the default > system. > Loaded kqemu.ko, and started a win2k3 image with qemu -kernel-kqemu. It > runs now for about 10 hours. No crashes so far. But I did not try a > unpatched kernel.previously. > Just wanted to let you know that here is a 7-CURRENT running from > yesterday with kqemu in kernel and usermode under SMP. Any tests I > should do? Ok, so a fix for this (even if slightly different from what you have tested) has been committed yesterday night. Now kqemu should not care if kernel is compiled or not with KSE and can be compiled cleanly with or without KSE. As an addictional note, I can say I think SMP breakage for kqemu is due to the option SMP not passed as compilation directive since SMP offers another compile time discriminant for the ABI. In particular, if a module is compiled without SMP on a SMP kernel it will use racy synchronization primitives. This means we should force at least modules compilation to always use SMP (I'm not sure if it alredy happens honestly, I just hope so). Thanks, Attilio