debuggers.hg
changeset 12672:a3b8c9e773e1
[XEND] Fix hidden vcpu state when calling xm-list
Stores the vcpus number in xenstore so it is preserved on xend
restart.
Signed-off-by: Alastair Tse <atse@xensource.com>
Stores the vcpus number in xenstore so it is preserved on xend
restart.
Signed-off-by: Alastair Tse <atse@xensource.com>
author | Alastair Tse <atse@xensource.com> |
---|---|
date | Thu Nov 30 14:46:45 2006 +0000 (2006-11-30) |
parents | 5bed7bc05c8a |
children | 09c29e91e3cd |
files | tools/python/xen/xend/XendDomainInfo.py |
line diff
1.1 --- a/tools/python/xen/xend/XendDomainInfo.py Thu Nov 30 14:44:58 2006 +0000 1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py Thu Nov 30 14:46:45 2006 +0000 1.3 @@ -847,7 +847,9 @@ class XendDomainInfo: 1.4 1.5 def setVCpuCount(self, vcpus): 1.6 self.info['vcpu_avail'] = (1 << vcpus) - 1 1.7 + self.info['vcpus_number'] = vcpus 1.8 self.storeVm('vcpu_avail', self.info['vcpu_avail']) 1.9 + self.storeVm('vcpus', self.info['vcpus_number']) 1.10 self._writeDom(self._vcpuDomDetails()) 1.11 1.12 def getLabel(self):