From: Ian Jackson Subject: Re: [v5][PATCH 11/16] tools/libxl: detect and avoid conflicts with RDM Date: Tue, 7 Jul 2015 17:01:39 +0100 Message-ID: <21915.63459.507574.676445@mariner.uk.xensource.com> References: <1436249837-14747-1-git-send-email-tiejun.chen@intel.com> <1436249837-14747-12-git-send-email-tiejun.chen@intel.com> <21915.48835.512123.695897@mariner.uk.xensource.com> <559BE7A8.3020007@intel.com> <21915.59587.186926.310968@mariner.uk.xensource.com> <559BEFEA.6010709@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <559BEFEA.6010709@intel.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: "Chen, Tiejun" Cc: Stefano Stabellini , Wei Liu , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Chen, Tiejun writes ("Re: [v5][PATCH 11/16] tools/libxl: detect and avoid conflicts with RDM"): > Are you saying this? We should use 'r' as the return value of libxc call > > int rc = 0, r; > > r = xc_reserved_device_memory_map(CTX->xch, flag, seg, bus, devfn, > NULL, nr_entries); > assert(r <= 0); > /* "0" means we have no any rdm entry. */ > if (!r) goto out; Yes, thanks. Ian.