[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3] dom variable error handled in Xenstore
On 28 October 2015 at 06:30, Dario Faggioli <dario.faggioli@xxxxxxxxxx> wrote: On Wed, 2015-10-28 at 05:42 +0530, Lasya wrote: Dario, I will trim down the content, and send another in. About the actual changelog: I shall mention the coverity ID this time , and will keep this is mind. As I didn't have knowledge about the code base, I used the variable names. I will definitely explain the bug in conceptual terms this time.Â
Wei had advised me to raise ENOMEM (Out of memory). However, on your advice I checked the xc_domain_setmaxmem()Â and xc_domain_max_vcpus(). On failure: ->xc_domain_setmaxmem returns a negative value. function libxl__build_pre in xen/tools/libxl/libxl_dom.c returns ERROR_FAIL when xc_domain_setmaxmem fails. ->xc_domain_max_vcpus returns a non zero value. It returns the same error value for libxl_build_pre function as above. I must also add errno.h header to the file, I forgot to do that. I shall do so in the next version. Request your comments, should I go with ENOMEM as we are finding (I think) 'amount' of dom memory allocation, and on failure it returns NULL, or with the generic ERROR_FAIL. Regards Lasya V -- _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |