From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 26 Mar 2009 21:57:47 +0800 From: "Zhao Shuai" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net>, "cinap_lenrek@gmx.de" Message-ID: <16413649.1004841238075867457.JavaMail.coremail@bj163app67.163.com> In-Reply-To: <2a9616a781a50ae31a8f7cd3fbcd1e1a@gmx.de> References: <2a9616a781a50ae31a8f7cd3fbcd1e1a@gmx.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_270254_28276779.1238075867456" Subject: Re: [9fans] gsoc linuxemu project help Topicbox-Message-UUID: c7ff8576-ead4-11e9-9d60-3106f5b1d025 ------=_Part_270254_28276779.1238075867456 Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 7bit >Does creative masoshism count as GSoC project? I dont know :) > >Hm... These points all belong to the big topic, getting modern linux >distro binaries (NTPL stuff) to work. This would be a good thing >because I'm stuck on some old debian sarge that was just moved to the >archives. > >Step one would be to get the simple single-threaded stuff to run like >echo and cat. The part point here is TLS. I had a somewhat working >plan9 driver for it but never packaged it up because i wanted the >whole thing working before submitting a kernel patch. You may later >progress to multithreaded apps wich use futex syscall. > >The way I work on linuxemu is randomly trying stuff out, see where it >crashes... try to understand why it crashes... implement/fix >syscalls and try again. Sometimes it easy and sometimes you scratch >your head for a several months. Its hard to estimate the time needed >to get X running because you never know what crazy optimization shit >the linux/libc guys come up with next to make you suffer. > >Here is always a huge risk of failure in linuxemu because all the >details are in Ulrich Dreppers head only or encrypted with >c-preprocessor-ifdef-encryption in the glibc-code so getting help is >very hard and most of the stuff you have to find out yourself (this >may cause brain damage over time). > >I cant (officialy) mentor you as I'm short of time and have no >scientific background or something, but I will try to give you all >infeormation/code and support I have... Its good to hear that someone >starts taking over some work! :) Just drop me an email. I may be >in irc from time to time too but dont count on it. > >-- >cinap If nothing else in linuxemu can make a GSoc project, I would like to give NTPL a try. Now I wonder how does Linuxemu work? I guess it parses the linux binary and whenever encounter a system call, emulate using Plan 9's function. I haven't dig into the source code, just guess. ------=_Part_270254_28276779.1238075867456 Content-Type: text/html; charset=gbk Content-Transfer-Encoding: quoted-printable
>Does creative masoshism count as GSoC project?  I dont know :)
>
>Hm...  These points all belong to the big topic, getting modern linux
>distro binaries (NTPL stuff) to work.  This would be a good thing
>because I'm stuck on some old debian sarge that was just moved to the
>archives.
>
>Step one would be to get the simple single-threaded stuff to run like
>echo and cat.  The part point here is TLS.  I had a somewhat working
>plan9 driver for it but never packaged it up because i wanted the
>whole thing working before submitting a kernel patch. You may later
>progress to multithreaded apps wich use futex syscall.
>
>The way I work on linuxemu is randomly trying stuff out, see where it
>crashes...  try to understand why it crashes...  implement/fix
>syscalls and try again.  Sometimes it easy and sometimes you scratch
>your head for a several months.  Its hard to estimate the time needed
>to get X running because you never know what crazy optimization shit
>the linux/libc guys come up with next to make you suffer.
>
>Here is always a huge risk of failure in linuxemu because all the
>details are in Ulrich Dreppers head only or encrypted with
>c-preprocessor-ifdef-encryption in the glibc-code so getting help is
>very hard and most of the stuff you have to find out yourself (this
>may cause brain damage over time).
>
>I cant (officialy) mentor you as I'm short of time and have no
>scientific background or something, but I will try to give you all
>infeormation/code and support I have...  Its good to hear that someone
>starts taking over some work!  :) Just drop me an email.  I may be
>in irc from time to time too but dont count on it.
>
>--
>cinap

If nothing else in linuxemu can make a GSoc project, I would like to gi= ve NTPL a try.

Now I wonder how does Linuxemu work? I guess it parse= s the linux binary and whenever
encounter a system call, emulate using = Plan 9's function. I haven't dig into the source
code, just guess.



=CD=F8=D2=D7=D3=CA=CF=E4=A3=AC=D6=D0=B9=FA= =B5=DA=D2=BB=B4=F3=B5=E7=D7=D3=D3=CA=BC=FE=B7=FE=CE=F1=C9=CC
------=_Part_270254_28276779.1238075867456--