WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] question about the guestOS boot

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] question about the guestOS boot
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Sat, 10 Mar 2007 19:13:18 +0000
Cc: "Petersson, Mats" <Mats.Petersson@xxxxxxx>, tgh <tianguanhua@xxxxxxxxxx>
Delivery-date: Sat, 10 Mar 2007 11:11:54 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <907625E08839C4409CE5768403633E0B018E1A3D@xxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <907625E08839C4409CE5768403633E0B018E1A3D@xxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.5
> There is a difference in Xen-linux start and a regular linux start, and
> that is that Xen-linux starts in 32-bit protected mode (but Paging is not
> yet enabled), whereas the regular Linux starts with real-mode (16-bit
> mode), and does a few instructions before it gets into 32-bit mode.

AFAIK paging is enabled for a Xen paravirtualised guest; there is a set of 
bootstrap pagetables put in place by the domain builder, which map enough 
memory to get the domain started.

Cheers,
Mark

> > then I do not know where does the guestOS start with in the code
> > could you told me where or which function does the guestOS
> > start with ?
>
> As above. The actual code that the Xen kernel starts at is in
> .../linux-<ver>-xen/arch/<mach>/kernel/head-xen.S
>
> --
> Mats
>
> > Thanks in advance
> >
> > Petersson, Mats 写道:
> > >> -----Original Message-----
> > >> From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
> > >> [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of tgh
> > >> Sent: 09 March 2007 08:17
> > >> To: xen-devel
> > >> Subject: [Xen-devel] question about the guestOS boot
> > >>
> > >> hi
> > >> I try to understand the code about vm create
> > >> and now I am confused about which code does the guestOS start
> > >> with to run ?
> > >>
> > >> xen domain0 uses the function xc_domain_creat() and
> > >> xc_linux_build() to
> > >> prepare the necessary struct such as vcpu_guest_context and
> > >> other things
> > >> for vm guestOS to bootup , in the xc_linux_build(),the
> >
> > initrd is also
> >
> > >> loaded in,is it right?
> > >> then guestOS does not run the regular bootloader ,is it right?
> > >
> > > That is correct.
> > >
> > >> then I am confused about which function or which lines of the
> > >> code does
> > >> the guestOS start with ?
> > >
> > > Can you explain your confusion a bit more - I'm not
> >
> > entirely sure what
> >
> > > you're asking, and it's very hard to answer questions when you don't
> > > know the actual question.
> > >
> > > Also, it's much better if you explain a little bit about what you're
> > > trying to achieve (I've previously used the example of
> >
> > someone having a
> >
> > > puncture, going to ask the mechanic how to loosen a wheel-nut, then
> > > going to ask how to jack up the car, then asking how to tighten the
> > > wheel-nut, when the actual problem is a punctured tyre, and
> >
> > the "right"
> >
> > > question to ask a mechanic is "How do I replace my
> >
> > punctured tyre with
> >
> > > the spare wheel?").
> > >
> > > Asking the overall question you're trying to solve will
> >
> > give you a more
> >
> > > complete answer to what you're trying to do, rather than a detailed
> > > answer on the point where you're at (and that may actually
> >
> > not help your
> >
> > > overall problem at all).
> > >
> > > --
> > > Mats
> > >
> > >> could you help me
> > >>
> > >> Thanks in advance
> > >>
> > >>
> > >> _______________________________________________
> > >> Xen-devel mailing list
> > >> Xen-devel@xxxxxxxxxxxxxxxxxxx
> > >> http://lists.xensource.com/xen-devel
> > >
> > > _______________________________________________
> > > Xen-devel mailing list
> > > Xen-devel@xxxxxxxxxxxxxxxxxxx
> > > http://lists.xensource.com/xen-devel
> >
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-devel
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel

-- 
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel