From: Ian Jackson Subject: Re: [PATCH v4 1/5] libxl: Remove pointless hypercall from libxl_set_memory_target Date: Mon, 4 Jan 2016 17:28:40 +0000 Message-ID: <22154.43976.129934.503875@mariner.uk.xensource.com> References: <1450441425-10755-1-git-send-email-george.dunlap@eu.citrix.com> <1450441425-10755-2-git-send-email-george.dunlap@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1450441425-10755-2-git-send-email-george.dunlap@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap Cc: Ian Campbell , Wei Liu , George Dunlap , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org George Dunlap writes ("[PATCH v4 1/5] libxl: Remove pointless hypercall from libxl_set_memory_target"): > There's no obvious reason for the call to xc_domain_getinfolist -- all > it seems to be doing is checking that the domain exists; but if it > doesn't exist, it will have already failed by this point. > > NB that this will change the return value for libxl_set_memory_target: > now it will return 0 on success, rather than returning 1 (which was > the previous behavior). This is more in line with expected behavior, > and also allows the caller to distingiush between success and other > failure modes (some of which also return 1). Acked-by: Ian Jackson Although I don't see the other return paths returning 1 which you mention. Ian.