[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Allow a domain other than Domain-0 to be a backend.
# HG changeset patch # User tkuik@xxxxxxxxxxxxxxxxxxxx # Node ID 7df5921af7e43cbee99b5aa85c021910ae91b05d # Parent 163c65c47d86833f76b6b065858db3284e00a6ad Allow a domain other than Domain-0 to be a backend. Signed-off-by: Tim Kuik tkuik@xxxxxxxxx diff -r 163c65c47d86 -r 7df5921af7e4 tools/python/xen/xend/server/DevController.py --- a/tools/python/xen/xend/server/DevController.py Mon Apr 3 16:48:39 2006 +++ b/tools/python/xen/xend/server/DevController.py Mon Apr 3 17:23:00 2006 @@ -85,6 +85,13 @@ front) import xen.xend.XendDomain + xd = xen.xend.XendDomain.instance() + backdom_name = sxp.child_value(config, 'backend') + if backdom_name is None: + backdom = xen.xend.XendDomain.PRIV_DOMAIN + else: + bd = xd.domain_lookup_by_name_nr(backdom_name) + backdom = bd.getDomid() count = 0 while True: t = xstransact() @@ -112,9 +119,13 @@ t.mkdir(backpath) t.set_permissions(backpath, - {'dom': xen.xend.XendDomain.PRIV_DOMAIN }, + {'dom': backdom }, {'dom' : self.vm.getDomid(), 'read' : True }) + t.mkdir(frontpath) + t.set_permissions(frontpath, + {'dom': self.vm.getDomid()}, + {'dom': backdom, 'read': True}) t.write2(frontpath, front) t.write2(backpath, back) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |