mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Merge.
This commit is contained in:
commit
d38fcf7e67
47 files changed
+633
-882
No files matched your search
@@ -688,7 +688,9 @@ def balloon_out(dom0_min_mem, opts):
|
||||
dom0_cur_alloc = get_dom0_alloc()
|
||||
dom0_new_alloc = dom0_cur_alloc - (domU_need_mem - free_mem)
|
||||
|
||||
if free_mem < domU_need_mem and dom0_new_alloc >= dom0_min_mem:
|
||||
if free_mem < domU_need_mem and dom0_new_alloc < dom0_min_mem:
|
||||
ret = 1
|
||||
if free_mem < domU_need_mem and ret == 0:
|
||||
|
||||
server.xend_domain_mem_target_set(0, dom0_new_alloc)
|
||||
|
||||
@@ -734,7 +736,8 @@ def main(argv):
|
||||
dom0_min_mem = xroot.get_dom0_min_mem()
|
||||
if dom0_min_mem != 0:
|
||||
if balloon_out(dom0_min_mem, opts):
|
||||
return
|
||||
print >>sys.stderr, "error: cannot allocate enough memory for domain"
|
||||
sys.exit(1)
|
||||
|
||||
dom = make_domain(opts, config)
|
||||
if opts.vals.console_autoconnect:
|
||||
|
||||
@@ -434,7 +434,7 @@ def xm_sedf(args):
|
||||
arg_check(args, 6, "sedf")
|
||||
|
||||
dom = args[0]
|
||||
v = map(int, args[1:5])
|
||||
v = map(int, args[1:6])
|
||||
from xen.xend.XendClient import server
|
||||
server.xend_domain_cpu_sedf_set(dom, *v)
|
||||
|
||||
|
||||