qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH, RFC] BSD user emulator


From: M. Warner Losh
Subject: Re: [Qemu-devel] [PATCH, RFC] BSD user emulator
Date: Mon, 25 Aug 2008 13:03:30 -0600 (MDT)

In message: <address@hidden>
            "Blue Swirl" <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]