mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
bitkeeper revision 1.1159.1.61 (411de57crUA7TOOChvm_Z8Af1U17xw)
blank space
This commit is contained in:
1 parent
903335eb04
commit
d489ed6ebb
1 file changed
+6
-1
@@ -475,6 +475,8 @@ class XendDomainInfo:
|
||||
if not dominfo:
|
||||
return
|
||||
print 'check_name>', 'dom=', dominfo.name, dominfo.dom, 'self=', name, self.dom
|
||||
if dominfo.is_terminated():
|
||||
return
|
||||
if not self.dom or (dominfo.dom != self.dom):
|
||||
raise VmError('vm name clash: ' + name)
|
||||
|
||||
@@ -490,7 +492,9 @@ class XendDomainInfo:
|
||||
try:
|
||||
self.name = sxp.child_value(config, 'name')
|
||||
self.check_name(self.name)
|
||||
self.cpu_weight = float(sxp.child_value(config, 'cpu_weight'))
|
||||
self.cpu_weight = float(sxp.child_value(config, 'cpu_weight'))
|
||||
if self.restore and self.dom:
|
||||
xc.domain_setname(self.dom, self.name)
|
||||
self.memory = int(sxp.child_value(config, 'memory'))
|
||||
if self.memory is None:
|
||||
raise VmError('missing memory size')
|
||||
@@ -630,6 +634,7 @@ class XendDomainInfo:
|
||||
if self.restart_pending():
|
||||
self.console.deregisterChannel()
|
||||
else:
|
||||
log.debug('Closing console, domain %s', self.id)
|
||||
self.console.close()
|
||||
chan = xend.getDomChannel(self.dom)
|
||||
if chan:
|
||||
|
||||