From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nivedita Singhvi Subject: Re: xenstore documentation Date: Tue, 04 Oct 2005 08:28:44 -0700 Message-ID: <43429FAC.6080100@comcast.net> References: <1128429737.30221.12.camel@localhost.localdomain> <1128430090.30221.16.camel@localhost.localdomain> <1128431831.30221.24.camel@localhost.localdomain> <43429A1C.1090006@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <43429A1C.1090006@us.ibm.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Anthony Liguori Cc: harry , Jacob Gorm Hansen , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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. 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//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@lists.xensource.com >> http://lists.xensource.com/xen-devel >> >> >> > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >