Re: [Qemu-devel] Running the user emulation

2010-08-12 Thread C K Kashyap
You mean qemu on NetBSD or NetBSD in general - if so, I know that even Solaris can also execute linux binaries. And to do it, it would require me to modify the mac os - which I have no clue how to. Maybe I'll try out what Stefan said - although, on the face of it, it looks like an endless cycles o

Re: [Qemu-devel] Running the user emulation

2010-08-11 Thread Natalia Portillo
You can check how NetBSD does that. NetBSD is able to run executables from other UNIXes and POSIX-compatible systems, including, Linux, IRIX, Darwin. They do that with a series of syscall conversions and library substitutions. That should be portable to use Mac OS X as host instead of NetBSD, an

Re: [Qemu-devel] Running the user emulation

2010-08-11 Thread C K Kashyap
Thanks Stefan for the explanation ... It does not look like a pleasant thing to do though :) On Wed, Aug 11, 2010 at 3:33 PM, Stefan Weil wrote: > Am 11.08.2010 11:33, schrieb C K Kashyap: > > I was wondering if it would be easy to force build the user-emulation on > mac - as in, lets say my a.

Re: [Qemu-devel] Running the user emulation

2010-08-11 Thread Stefan Weil
Am 11.08.2010 11:33, schrieb C K Kashyap: I was wondering if it would be easy to force build the user-emulation on mac - as in, lets say my a.out from linux is really trivial - even statically linked for that matter. All it does is, say, write "hello world\n" to the screen - I'd imaging that wr

Re: [Qemu-devel] Running the user emulation

2010-08-11 Thread C K Kashyap
I was wondering if it would be easy to force build the user-emulation on mac - as in, lets say my a.out from linux is really trivial - even statically linked for that matter. All it does is, say, write "hello world\n" to the screen - I'd imaging that write system call would be similar on mac (as fa

Re: [Qemu-devel] Running the user emulation

2010-08-11 Thread Stefan Weil
Am 11.08.2010 11:06, schrieb C K Kashyap: Let me see if I understand this right - qemu loads the a.out and begins to interpret the x86 instructions in the a.out and when a system call happens, it makes the call the host system is that right? Right. That's the way how linux user mode

Re: [Qemu-devel] Running the user emulation

2010-08-11 Thread C K Kashyap
Let me see if I understand this right - qemu loads the a.out and begins to interpret the x86 instructions in the a.out and when a system call happens, it makes the call the host system is that right? On Wed, Aug 11, 2010 at 2:12 PM, Stefan Weil wrote: > Am 11.08.2010 10:31, schrieb C K

Re: [Qemu-devel] Running the user emulation

2010-08-11 Thread Stefan Weil
Am 11.08.2010 10:31, schrieb C K Kashyap: Hi, I've built qemu on my mac osx using this config - ./configure --prefix=/Users/ckk/local/ --target-list="i386-softmmu x86_64-softmmu" --enable-linux-user Now, I have a simple a.out built on linux - how can I run it using qemu on my mac box? -- Re

[Qemu-devel] Running the user emulation

2010-08-11 Thread C K Kashyap
Hi, I've built qemu on my mac osx using this config - ./configure --prefix=/Users/ckk/local/ --target-list="i386-softmmu x86_64-softmmu" --enable-linux-user Now, I have a simple a.out built on linux - how can I run it using qemu on my mac box? -- Regards, Kashyap