mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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:
1 parent
2bba474f8f
commit
5c22e77bb7
1 file changed
-3
@@ -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)
|
||||
|
||||
|
||||