Displaying 2 results from an estimated 2 matches for "domain_lookup_nr".
2007 May 04
0
[PATCH] 3/4 "nemesis" scheduling domains for Xen
...""" Ad an activation domain to a scheduling domain.
+
+ @param adom: activation domain ID
+ @type adom: int or string
+ @param sdom: scheduling domain ID
+ @type sdom: int or string
+ @rtype: 0
+ """
+ adominfo = self.domain_lookup_nr(adom)
+ if not adominfo:
+ raise XendInvalidDomain(str(adom))
+ sdominfo = self.domain_lookup_nr(sdom)
+ if not sdominfo:
+ raise XendInvalidDomain(str(sdom))
+ try:
+ return xc.add_adom(adom, sdom)
+ except Exception, ex:
+...
2012 Sep 21
1
PATCH [base vtpm and libxl patches 3/6] Fix bugs in vtpm hotplug scripts
...ug scripts if backend is not dom0
+ import xen.xend.XendDomain
+ xd = xen.xend.XendDomain.instance()
+ backdom_name = config.get(''backend'')
+ if backdom_name is None:
+ backdom = xen.xend.XendDomain.DOM0_ID
+ else:
+ bd = xd.domain_lookup_nr(backdom_name)
+ backdom = bd.getDomid()
+
+ if backdom != xen.xend.XendDomain.DOM0_ID:
+ self.hotplug = False
+
+ return DevController.createDevice(self, config)
+
def getDeviceDetails(self, config):
"""@see DevController.getDeviceDetails"...