[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [XEND] Fix hidden vcpu state when calling xm-list



# HG changeset patch
# User Alastair Tse <atse@xxxxxxxxxxxxx>
# Node ID a3b8c9e773e1681a21e97d93f2d457bfbe64bb94
# Parent  5bed7bc05c8a0de90f2047a98b24e5347d6d9dda
[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@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendDomainInfo.py |    2 ++
 1 files changed, 2 insertions(+)

diff -r 5bed7bc05c8a -r a3b8c9e773e1 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Thu Nov 30 14:44:58 2006 +0000
+++ b/tools/python/xen/xend/XendDomainInfo.py   Thu Nov 30 14:46:45 2006 +0000
@@ -847,7 +847,9 @@ class XendDomainInfo:
 
     def setVCpuCount(self, vcpus):
         self.info['vcpu_avail'] = (1 << vcpus) - 1
+        self.info['vcpus_number'] = vcpus
         self.storeVm('vcpu_avail', self.info['vcpu_avail'])
+        self.storeVm('vcpus', self.info['vcpus_number'])
         self._writeDom(self._vcpuDomDetails())
 
     def getLabel(self):

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.