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

Re: [Xen-devel] xenstore documentation

To: Nivedita Singhvi <nsnix@xxxxxxxxxxx>
Subject: Re: [Xen-devel] xenstore documentation
From: Anthony Liguori <aliguori@xxxxxxxxxx>
Date: Tue, 04 Oct 2005 10:46:35 -0500
Cc: harry <harry@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>, Jacob Gorm Hansen <jacobg@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 04 Oct 2005 15:44:16 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <43429FAC.6080100@xxxxxxxxxxx>
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>
References: <e08041f30510031003p6c4911b8n22dbf10bd1a1997f@xxxxxxxxxxxxxx> <ae5426fb0510032327r4589aaerc4d279825dca0ad8@xxxxxxxxxxxxxx> <e08041f30510040520g53e96456xa7d93168fa8cdf90@xxxxxxxxxxxxxx> <1128429737.30221.12.camel@xxxxxxxxxxxxxxxxxxxxx> <1128430090.30221.16.camel@xxxxxxxxxxxxxxxxxxxxx> <e08041f30510040556i3c5eb9e3o1bbb5a2ba15d610a@xxxxxxxxxxxxxx> <1128431831.30221.24.camel@xxxxxxxxxxxxxxxxxxxxx> <e08041f30510040631j5eca8a81j1d3d67e40847b2f0@xxxxxxxxxxxxxx> <43429A1C.1090006@xxxxxxxxxx> <43429FAC.6080100@xxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050912)
Nivedita Singhvi wrote:

Anthony Liguori wrote:

Jacob Gorm Hansen wrote:


1) Create domain
   domid = 0
   xc_domain_create(&domid)
   xc_domain_maxmem(domid, memory >> 10);
   xc_domain_memory_increase_reservation(domid, memory >> 12);


Hi Anthony,

Sounds like you're the right person to get the interface
documentation written? :). Would be very helpful.

Doh!  Seriously though, I'm more than happy to once 3.0 ships.

Regards,

Anthony Liguori

thanks,
Nivedita


2) Build domain
   lconsole = rconsole = 0;
   xc_evtchn_bind_interdomain(0, domid, &lconsole, &rconsole);
   lstore = rstore = 0;
   xc_evtchn_bind_interdomain(0, domid, &lconsole, &rconsole);

xc_linux_build(domid, kernel, ramdisk, cmdline, 0, vcpus, rstore, &mfn_store, rconsole, &mfn_console)
   home = "/tools/<yourtool>/domain/%d" % domid
   xs_domain_introduce(domid, mfn_store, lstore, home);
   xs_write(home + "/console/ring-ref", mfn_console)
   xs_write(home + "/console/port", lconsole)

3) Create block device (pdev, vdev)
   static int uuid;

   dom0_home = xs_get_domain_path(0)

   backend = dom0_home + "/backend/vbd/%s/%s' % (uuid, domid)
   frontend = home + "/device/vbd/%s' % uuid

   transaction_start()
   xs_write(backend + "/frontend", frontend);
   xs_write(backend + "/frontend-id", domid);
   transaction_end()

   transaction_start()
   xs_write(frontend + "/backend", backend);
   xs_write(frontend + "/backend-id", 0);
   xs_write(frontend + "/virtual-device", vdev)
   transaction_end()

   xs_write(backend + "/physical-device", pdev)

This might seem complicated, but compared to what you had to do under 2.0.x, it's a 1000x times easier.

Regards,

Anthony Liguori

Jacob

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



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





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