[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] RE: [Xen-users] DomU Kernel Mapping



 

> -----Original Message-----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx 
> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Security Initiative Team
> Sent: 17 April 2007 18:53
> To: xen-users@xxxxxxxxxxxxxxxxxxx; xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: [Xen-users] DomU Kernel Mapping
> 
> Where is the code that maps the kernel of a DomU into memory?
> 
> i.e, when you do a xm create  <config file>
> what code is called to actually map the kernel into memory?


It is in .../tools/libxc/xc_dom_compat.c and
.../tools/libxc/xc_hvm_build.c for PV and HVM respectively. 

> 
> Is it a python script or is it re-directed to Dom0 to do?

Ehm, you can only do xm create in dom0, so I'm not sure what you mean by
this. 

xm is written in python, but it calls out to C-functions, which in turn
makes hypercalls to the hypervisor to perform for example memory
allocation, setting up VCPU(s), creation of the actual domain (empty, to
be filled in), starting the domain, etc, etc. 

The code for "xm create" is in .../tools/python/xen/xm/create.py. 

--
Mats
> 
> Thanks.
> -Brian
> 
> 
> ________________________________
> 
> Ahhh...imagining that irresistible "new car" smell?
> Check out new cars at Yahoo! Autos. 
> <http://us.rd.yahoo.com/evt=48245/*http://autos.yahoo.com/new_
> cars.html;_ylc=X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGF
> ncwRzbGsDbmV3LWNhcnM->  
> 



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.