ia64/xen-unstable

changeset 17039:c3fd43049492

xend: Remove redundant check of maximum memory size.

Currently, a wrong value of maximum memory size is checked by
_safe_set_memory() and _memory_sanity_check().

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Feb 12 10:19:12 2008 +0000 (2008-02-12)
parents 181578832957
children bd09d9692bda
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Tue Feb 12 10:16:20 2008 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Tue Feb 12 10:19:12 2008 +0000
     1.3 @@ -707,9 +707,6 @@ class XendDomainInfo:
     1.4          log.debug("Setting memory maximum of domain %s (%s) to %d MiB.",
     1.5                    self.info['name_label'], str(self.domid), limit)
     1.6  
     1.7 -        if limit <= 0:
     1.8 -            raise XendError('Invalid memory size')
     1.9 -
    1.10          MiB = 1024 * 1024
    1.11          self._safe_set_memory('memory_static_max', limit * MiB)
    1.12