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>
This commit is contained in:
Keir Fraser committed 2008-02-12 10:19:12 +00:00
1 parent 2bba474f8f
commit 5c22e77bb7
1 file changed
-3
-3
View File
@@ -707,9 +707,6 @@ class XendDomainInfo:
log.debug("Setting memory maximum of domain %s (%s) to %d MiB.",
self.info['name_label'], str(self.domid), limit)
if limit <= 0:
raise XendError('Invalid memory size')
MiB = 1024 * 1024
self._safe_set_memory('memory_static_max', limit * MiB)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.