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-users

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

To: "Security Initiative Team" <passrete@xxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] RE: [Xen-users] DomU Kernel Mapping
From: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Date: Wed, 18 Apr 2007 10:42:29 +0200
Delivery-date: Wed, 18 Apr 2007 01:41:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <865245.77795.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AceBkpzPcAr4yNEGS3GnGwJJERlxagAAczxQ
Thread-topic: [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

<Prev in Thread] Current Thread [Next in Thread>