From: tgh <tianguanhua@ncic.ac.cn>
To: "Petersson, Mats" <Mats.Petersson@amd.com>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: question about the guestOS boot
Date: Fri, 09 Mar 2007 18:13:19 +0800 [thread overview]
Message-ID: <45F1333F.1020305@ncic.ac.cn> (raw)
In-Reply-To: <907625E08839C4409CE5768403633E0B018E1A3B@sefsexmb1.amd.com>
Thank you for your reply and guide
I try to understand how does the xen provide a virtual platform for
guestOS to run
dom0 provides hardware abstract struct as well as software struct for
guestOS
and when dom0 boots a vm ,it does prepare the vm vcpu_guest_context for
guestOS to run
so when VM starts ( the same as our PC resets) ,its vcpu isnot an empty
context like the regular ones without virtualization ,so it doesnot
start from the regular point or function or firmware
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 ?
Thanks in advance
Petersson, Mats 写道:
>
>
>
>> -----Original Message-----
>> From: xen-devel-bounces@lists.xensource.com
>> [mailto:xen-devel-bounces@lists.xensource.com] 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@lists.xensource.com
>> http://lists.xensource.com/xen-devel
>>
>>
>>
>>
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>
>
next prev parent reply other threads:[~2007-03-09 10:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-08 16:23 [PATCH] [TPM] Remove an unused data structure Stefan Berger
2007-03-09 8:16 ` question about the guestOS boot tgh
2007-03-09 9:45 ` Petersson, Mats
2007-03-09 10:13 ` tgh [this message]
2007-03-09 10:43 ` Petersson, Mats
2007-03-09 12:09 ` tgh
2007-03-09 12:17 ` Petersson, Mats
2007-03-09 12:34 ` tgh
2007-03-09 12:40 ` Petersson, Mats
2007-03-09 12:52 ` tgh
2007-03-10 19:13 ` Mark Williamson
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=45F1333F.1020305@ncic.ac.cn \
--to=tianguanhua@ncic.ac.cn \
--cc=Mats.Petersson@amd.com \
--cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.