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

Re: [Xen-API] xapi toolstack

To: Daniel Stodden <daniel.stodden@xxxxxxxxxx>
Subject: Re: [Xen-API] xapi toolstack
From: Ritu kaur <ritu.kaur.us@xxxxxxxxx>
Date: Wed, 24 Feb 2010 13:51:39 -0800
Cc: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 24 Feb 2010 13:52:01 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=l18KKw2IOfAdRDblwXWFo8e9Uo8RrNF9ZTn3cG8aZfs=; b=UQhPqZ0Z89JRD4VAvw2uOVRemvkW1W3hamiEx6PRE94GbaMGepwLXJPMtRaarGNWjv 8QPiVzWN4hK4kB77oBwIRyp9+yidg8p+15WLWNXSdn27FP5Z3/13AX+1w7d6AlxTh5JS 989YYnctm5UMgQqCeCPg+AyKgPMryYj6ETnfA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=KiHW4rAShMXHUthUcYVKVmPgTqwzyKou/8PJ82UA3MTWu4Oh268UVTgRy+B6xfICbA ijMr/RKrLP9AEZTUjJIA527eHbFQo3fWhP/HrgTTKdfKbr+tmJNEY0JxOfGRCDGgj88O +oxIma5/vUFWCEBkaRJ87KdwoF56pnMBALjhw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1267042514.14543.2503.camel@xxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <29b32d341002231335xbe63b43t187eda56c12719bd@xxxxxxxxxxxxxx> <1267042514.14543.2503.camel@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Hi Daniel,

Thanks much, very insightful and helps in understanding. One thing I am not able to find is directory "/local/domain/..."  either in dom0 or in domU. I am using citrix xenserver 5.5 and debian etch 4.0 as domU. The rest I think I have better understanding now.

Thanks


On Wed, Feb 24, 2010 at 12:15 PM, Daniel Stodden <daniel.stodden@xxxxxxxxxx> wrote:
On Tue, 2010-02-23 at 16:35 -0500, Ritu kaur wrote:
> Hi,

Hey Ritu.

> Its my understanding that virtual interfaces(vif, vbd...) are created
> by xapi toolstack when a vm is installed i.e basically xapi toolstack
> controls creation/deletion of interfaces in dom0 when VM's come and
> go. Is it true that xapi toolstack runs in domU as well since
> interfaces are created there for netfront drivers?

The creation is managed via xenstore. There are xenbus clients in the
guest OS, as there is one dom0.

Actually dom0 and Linux domUs share basically the same code, because
frontends and backends are quite similar. Look into drivers/xen/xenbus/.

So xapi in dom0 userland also communicates with domU kernels. It
creates /local/domain/<domid>/device/<type> nodes, and writes all fields
necessary to get them initialized.

The .probe and .remove function you saw in the xenbus_driver struct are
called when these xenstore directories are created and removed,
respectively.

> If I were to create a temp device
> under /sys/bus/xen-backend/devices/(this is where I see vif, vbd and
> other devices are present in dom0), I believe I have to modify xapi
> toolstack is that correct?

The xen-backend sysfs class only represents the kernel space components.
The ones you find in drivers/xen.

Any instance of these drivers, once created via xenstore, is represented
by some device node in the kernel. These correspond to the nodes you
find in sysfs.

Code to control them via xenstore would belong into the toolstack.

Daniel




_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>