Received: from eggs.gnu.org ([2001:4830:134:3::10]:50882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VB3Tp-0006SR-7r for qemu-devel@nongnu.org; Sun, 18 Aug 2013 09:57:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VB3Ti-0003LR-SY for qemu-devel@nongnu.org; Sun, 18 Aug 2013 09:57:17 -0400 Received: from nm11.bullet.mail.ird.yahoo.com ([77.238.189.64]:42488) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1VB3Ti-0003Kv-Eh for qemu-devel@nongnu.org; Sun, 18 Aug 2013 09:57:10 -0400 References: <1376557029.19085.YahooMailNeo@web172603.mail.ir2.yahoo.com> <20130815120910.GA32223@stefanha-thinkpad.redhat.com> <1376572924.75296.YahooMailNeo@web172603.mail.ir2.yahoo.com> <1376574399.92764.YahooMailNeo@web172601.mail.ir2.yahoo.com> <1376575279.89844.YahooMailNeo@web172604.mail.ir2.yahoo.com> <1376669117.2737.45@driftwood> <1376669826.26224.YahooMailNeo@web172602.mail.ir2.yahoo.com> <1376802039.2737.52@driftwood> Message-ID: <1376834228.65699.YahooMailNeo@web172602.mail.ir2.yahoo.com> Date: Sun, 18 Aug 2013 14:57:08 +0100 (BST) From: Herbei Dacian In-Reply-To: <1376802039.2737.52@driftwood> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-945802626-504041566-1376834228=:65699" Subject: Re: [Qemu-devel] minimal linux distribution for qemu Reply-To: Herbei Dacian List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Rob Landley Cc: QEmu Devel ---945802626-504041566-1376834228=:65699 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable =0Agood to know.=0AI was working back in 2005-2006 with a company that had = a 4MB kernel.=0AAt that time I was too inexperienced to work at that level = but I thought now I could reproduce their work with some help.=0AAnyhow for= the moment I'll go for 256 MB of ram board just so that I don't worry too = much about things that are not yet relevant for me.=0ABut thanks again for = the warning.=0ABut since you helped me soo much I have another question.=0A= Is it fisible to change the emulator so that I may visualize the following = aspects:=0A_ address of the currently executed instruction from the guest s= ystem=0A_ if this instruction is a form of jump like call return conditiona= l jump.=0A_ the address or range of addresses read by this instruction=0A_ = the address or range of addresses written by this instruction=0A=0AI read s= ome things about the emulator and if I understood it correctly the emulator= breaks the instructions of the gurest platform in micro ops which are then= executed on the host operation system.=0ASo I'm asking the question above = in the idea that maybe there is also somekind of reordering of these micro = instructions.=0Abest regards,=0Adacian=0A=0A=0A=0A=0A______________________= __________=0A From: Rob Landley =0ATo: Herbei Dacian =0ACc: Peter Maydell ; QEmu D= evel =0ASent: Sunday, 18 August 2013, 8:00=0ASubjec= t: Re: [Qemu-devel] minimal linux distribution for qemu=0A =0A=0AOn 08/16/2= 013 11:17:06 AM, Herbei Dacian wrote:=0A> my system should run in far less = memory. something like 2-4MB.=0A> but first I need to have a system running= so that I can monitor with=A0 =0A> qemu the addresses accessed for read ex= ecute and write by the code=A0 =0A> run by the emulator.=0A> if I reach tha= t is a real big deal.=0A> dacian=0A=0ALinux 2.6 and later won't run in 2 me= gs at all. You can trim it down to=A0 =0A4 megs on a nommu system (the page= tables take up too much ram=A0 =0Aotherwise), but won't be able to do much= .=0A=0AReally, things like kobjects in the modern kernel take up too much= =A0 =0Aspace. Getting anything to work in 4 megs requires diabling all the= =A0 =0Aprintk strings at compile time. (The last time I saw somebody do a 4= =A0 =0Ameg system was CELF in 2006. 32 bit x86.)=0A=0ALook at the uClinux p= roject. Or try to bolt your app onto uboot and run=A0 =0Ait on the bare met= al.=0A=0ARob ---945802626-504041566-1376834228=:65699 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable

good to know.
I was worki= ng back in 2005-2006 with a company that had a 4MB kernel.
At that time = I was too inexperienced to work at that level but I thought now I could rep= roduce their work with some help.
Anyhow for the moment I'll go for 256 = MB of ram board just so that I don't worry too much about things that are n= ot yet relevant for me.
But thanks again for the warning.
But since y= ou helped me soo much I have another question.
Is it fisible to change t= he emulator so that I may visualize the following aspects:
_ address of = the currently executed instruction from the guest system
_ if this instr= uction is a form of jump like call return conditional jump.
_ the addres= s or range of addresses read by this instruction
_ the address or range = of addresses written by this instruction

I read some things about the emulator and if I understood it correctly the emulator breaks th= e instructions of the gurest platform in micro ops which are then executed = on the host operation system.
So I'm asking the question above in the id= ea that maybe there is also somekind of reordering of these micro instructi= ons.
best regards,
dacian



From: Rob Landle= y <rob@landley.net>
To: Herbei Dacian <dacian_herbei@yahoo.fr>
Cc: Peter Maydell <peter.maydell@linaro.o= rg>; QEmu Devel <qemu-devel@nongnu.org>
Sent: Sunday, 18 August 2013, 8:00
Subject: Re: [Qemu-devel] minimal linux dis= tribution for qemu

On= 08/16/2013 11:17:06 AM, Herbei Dacian wrote:
> my system should run = in far less memory. something like 2-4MB.
> but first I need to have = a system running so that I can monitor with 
> qemu the address= es accessed for read execute and write by the code 
> run by th= e emulator.
> if I reach that is a real big deal.
> dacian
<= br>Linux 2.6 and later won't run in 2 megs at all. You can trim it down to&= nbsp;
4 megs on a nommu system (the page tables take up too much ram&nb= sp;
otherwise), but won't be able to do much.

Really, things lik= e kobjects in the modern kernel take up too much 
space. Getting a= nything to work in 4 megs requires diabling all the 
printk strings at compile time. (The last time I saw somebody do a 4 
me= g system was CELF in 2006. 32 bit x86.)

Look at the uClinux project.= Or try to bolt your app onto uboot and run 
it on the bare metal.=

Rob

---945802626-504041566-1376834228=:65699--