Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KXhN7-0008VH-O3 for qemu-devel@nongnu.org; Mon, 25 Aug 2008 15:05:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KXhN6-0008Uc-Mf for qemu-devel@nongnu.org; Mon, 25 Aug 2008 15:05:00 -0400 Received: from [199.232.76.173] (port=34504 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KXhN6-0008UZ-Hh for qemu-devel@nongnu.org; Mon, 25 Aug 2008 15:05:00 -0400 Received: from bsdimp.com ([199.45.160.85]:63006 helo=harmony.bsdimp.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KXhN5-0004ok-V4 for qemu-devel@nongnu.org; Mon, 25 Aug 2008 15:05:00 -0400 Date: Mon, 25 Aug 2008 13:03:30 -0600 (MDT) Message-Id: <20080825.130330.1102551494.imp@bsdimp.com> Subject: Re: [Qemu-devel] [PATCH, RFC] BSD user emulator From: "M. Warner Losh" In-Reply-To: References: Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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, blauwirbel@gmail.com In message: "Blue Swirl" writes: : I think in BSD (at least OpenBSD), system call numbers, system call : parameters, ioctls, and signal numbers are shared across : architectures, maybe even between *BSDs. If it's true, it should make : the emulator much simpler than Linux one. Yes. FreeBSD, DragonFlyBSD and NetBSD all share this trait. There's some minor ioctl variances between architectures, however, since the size of the data of the ioctl is encoded in the ioctl request number/#define. Error numbers are also the same. The only time that system call numbers are translated is for the different emulation layers that the BSDs implement. So for doing OSF/1 emulation something different than Linux emulation is done. However, for each of the emulators, the system calls, signals, etc is consistent across architectures for everything except Linux... And before I forget, way way way cool! Warner