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

Re: [Xen-API] xapi toolstack


  • To: Daniel Stodden <daniel.stodden@xxxxxxxxxx>
  • 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
  • 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=
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>

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

 


Rackspace

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