[XEND] Remember cpu-pinning information across guest restarts.

Signed-off-by: Qing He <qing.he@intel.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2006-05-25 14:45:40 +01:00
1 parent 22c42d4bc0
commit 29a0da72ab
1 file changed
+4
+4
View File
@@ -1546,6 +1546,10 @@ class XendDomainInfo:
self.configure_bootloader()
config = self.sxpr()
if self.infoIsSet('cpus') and len(self.info['cpus']) != 0:
config.append(['cpus', reduce(lambda x, y: str(x) + "," + str(y),
self.info['cpus'])])
if self.readVm(RESTART_IN_PROGRESS):
log.error('Xend failed during restart of domain %d. '
'Refusing to restart to avoid loops.',
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.