[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] merge
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Node ID 0f5dd1d43b675d7d842471367a1120820dbba982 # Parent 67a06a9b7b1dca707e1cd3b08ae0a341d6e97b3d # Parent e8a74ac8016756a303cb889abbb95e593484fb5d merge --- tools/python/xen/xend/XendConfig.py | 5 +++++ 1 files changed, 5 insertions(+) diff -r 67a06a9b7b1d -r 0f5dd1d43b67 tools/python/xen/xend/XendConfig.py --- a/tools/python/xen/xend/XendConfig.py Thu Dec 07 11:12:52 2006 +0000 +++ b/tools/python/xen/xend/XendConfig.py Thu Dec 07 11:14:21 2006 +0000 @@ -353,10 +353,15 @@ class XendConfig(dict): if self['builder'] not in ('hvm', 'linux'): raise XendConfigError('Invalid builder configuration') + def _vcpus_sanity_check(self): + if self.get('vcpus_number') != None: + self['vcpu_avail'] = (1 << self['vcpus_number']) - 1 + def validate(self): self._memory_sanity_check() self._actions_sanity_check() self._builder_sanity_check() + self._vcpus_sanity_check() def _dominfo_to_xapi(self, dominfo): self['domid'] = dominfo['domid'] _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |