Xiaofeng Ling
2005-Jun-29 09:25 UTC
[Xen-devel] [PATCH] fix xc_domain_memory_increase_reservation return value
in xc_domain_memory_increase_reservation, when do_dom_mem_op return 0, it shall also return -1,I met this problem when I try to allocate domain memory. Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com> diff -Nru a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c --- a/tools/libxc/xc_domain.c 2005-06-29 17:16:11 +08:00 +++ b/tools/libxc/xc_domain.c 2005-06-29 17:16:11 +08:00 @@ -243,7 +243,7 @@ if (err == mem_kb / 4) return 0; - if (err > 0) { + if (err >= 0) { errno = ENOMEM; err = -1; } _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Apparently Analagous Threads
- [PATCH v8 2/2] tools: XENMEM_claim_pages (subop of existing) hypercall
- [PATCH 3 of 4] PoC: libxc+ocaml: add interfaces to send triggers to HVM guests
- [RFC/PATCH v4] XENMEM_claim_pages (subop of existing) hypercall
- [PATCH] Make XEN_DOMCTL_destroydomain hypercall continuable.
- [PATCH] 3/4 "nemesis" scheduling domains for Xen