From: Anthony Liguori <anthony@codemonkey.ws>
To: thakur@symmetricore.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] How linux kernel is directly loaded?
Date: Sun, 01 Feb 2009 13:36:29 -0600 [thread overview]
Message-ID: <4985F9BD.6080809@codemonkey.ws> (raw)
In-Reply-To: <1233468649.5990.3.camel@himanshu-laptop>
Thakur wrote:
> Hi,
>
> I was searching for code in qemu which is directly able to load linux
> kernel with -k option. Which file implements it? Can someone point me to
> location where this load process is described? My objective is to load
> the Minix kernel in same fashion.
>
It's different for every architecture but since you're interested in
Minix, I assume you're interested in x86.
The important bits are in hw/pc.c:load_linux().
Currently, the way this is implemented is by loading the kernel into
memory and creating a tiny option rom that hijacks int19. int19 is the
BIOS boot interrupt so this allows us to run our own tiny boot loader
that loads the kernel that we previously loaded into memory.
Depending on how different the Minix boot protocol is, it should be
relatively easy to adapt.
Regards,
Anthony Liguori
> Thanks
>
> Best Regards
> - Thakur
>
>
>
>
prev parent reply other threads:[~2009-02-01 19:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-01 6:10 [Qemu-devel] How linux kernel is directly loaded? Thakur
2009-02-01 14:51 ` Blue Swirl
2009-02-01 16:27 ` Thakur
2009-02-01 19:36 ` Anthony Liguori [this message]
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=4985F9BD.6080809@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=qemu-devel@nongnu.org \
--cc=thakur@symmetricore.com \
/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).