mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
[XEND] Remember cpu-pinning information across guest restarts.
Signed-off-by: Qing He <qing.he@intel.com>
This commit is contained in:
1 parent
22c42d4bc0
commit
29a0da72ab
1 file changed
+4
@@ -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.',
|
||||
|
||||