qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Karl Magdsick <kmagnum@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Port to IRIX host
Date: Sun, 3 Oct 2004 11:23:30 -0400	[thread overview]
Message-ID: <cd8ecdef04100308236e60c14a@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0410031528430.14868@wgmdd8.biozentrum.uni-wuerzburg.de>

> 
> A question: i386-user is supposed to only run linux binaries, right? What
> are the reasons that it is disabled on Windows? Could there be a way to
> make it run on Windows, and also on IRIX?
> 

i386-user passes the Linux system calls strait through to the native
system.  You could probably get away with adding some code to
translate Linux syscalls to IRIX syscalls (with varying degrees of
glue code to emulate correct behavior) for the most common cases and
(initially) having QEMU print an error message and exit when it
reaches an unimplemented system call.  In this way, you could
gradually add support for all of the Linux syscalls.

As far as running x86 Linux binaries on x86 Win32, if you already have
a way to translate Linux syscalls to Win32 syscalls, QEMU provides
little or no advantage.  CoLinux is a project that has ported the
Linux kernel to be a WinNT subsystem so that WinNT can deal with Linux
system calls.   With CoLinux alone, you can run x86 Linux binaries on
WinNT.

Now, if you're running WinNT 3.51 on MIPS or PPC and ported CoLinux to
your system, then i386-user would be useful.  i386-user could also in
theory be used on a MIPS or PPC WinNT system to run i386 WinNT
binaries.

There is a project called DarWine that is porting Wine to Darwin (the
core of Apple's OS X).  This will allow Darwin to handle Win32 system
calls passed through by i386-user.  The specific goal of DarWine is to
allow Darwin x86 to directly run x86 Win32 programs and to allow
Darwin PPC  (including OS X) to run x86 Win32 programs when used with
QEMU i386-user.  You can find DarWine at the OpenDarwin project
(www.OpenDarwin.org).


-Karl

  parent reply	other threads:[~2004-10-03 15:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-03  7:13 [Qemu-devel] Port to IRIX host Johannes Schindelin
2004-10-03 11:57 ` Fabrice Bellard
2004-10-03 14:00   ` Johannes Schindelin
2004-10-03 14:12     ` Jim C. Brown
2004-10-03 14:44     ` Fabrice Bellard
2004-10-04  6:41       ` Johannes Schindelin
2004-10-03 15:23     ` Karl Magdsick [this message]
2004-10-03 16:48     ` Karl Magdsick
2004-10-04  6:42       ` Johannes Schindelin
2004-10-11 13:55         ` Ian Rogers
2004-10-11 15:02           ` Johannes Schindelin
2004-10-11 15:56           ` [Qemu-devel] transitive was: " Anand Kumria

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cd8ecdef04100308236e60c14a@mail.gmail.com \
    --to=kmagnum@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).