From mboxrd@z Thu Jan 1 00:00:00 1970 From: tgh Subject: Re: question about the guestOS boot Date: Fri, 09 Mar 2007 18:13:19 +0800 Message-ID: <45F1333F.1020305@ncic.ac.cn> References: <907625E08839C4409CE5768403633E0B018E1A3B@sefsexmb1.amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <907625E08839C4409CE5768403633E0B018E1A3B@sefsexmb1.amd.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Petersson, Mats" Cc: xen-devel List-Id: xen-devel@lists.xenproject.org Thank you for your reply and guide I try to understand how does the xen provide a virtual platform for=20 guestOS to run dom0 provides hardware abstract struct as well as software struct for=20 guestOS and when dom0 boots a vm ,it does prepare the vm vcpu_guest_context for=20 guestOS to run so when VM starts ( the same as our PC resets) ,its vcpu isnot an empty=20 context like the regular ones without virtualization ,so it doesnot=20 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 =E5=86=99=E9=81=93: > =20 > > =20 >> -----Original Message----- >> From: xen-devel-bounces@lists.xensource.com=20 >> [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=20 >> with to run ? >> >> xen domain0 uses the function xc_domain_creat() and=20 >> xc_linux_build() to >> prepare the necessary struct such as vcpu_guest_context and=20 >> 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? >> =20 > > That is correct.=20 > =20 >> then I am confused about which function or which lines of the=20 >> code does >> the guestOS start with ? >> =20 > > 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.=20 > > 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?").=20 > > 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 you= r > overall problem at all).=20 > > -- > Mats > =20 >> could you help me >> >> Thanks in advance >> >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >> >> >> >> =20 > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > > > =20