From: "Jan Beulich" Subject: Re: [v8][PATCH 07/17] hvmloader/util: get reserved device memory maps Date: Mon, 08 Dec 2014 09:18:57 +0000 Message-ID: <54857B11020000780004DA4E@mail.emea.novell.com> References: <1417425875-9634-1-git-send-email-tiejun.chen@intel.com> <1417425875-9634-8-git-send-email-tiejun.chen@intel.com> <54809169020000780004CD03@mail.emea.novell.com> <548566B7.8080508@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <548566B7.8080508@intel.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Tiejun Chen Cc: kevin.tian@intel.com, wei.liu2@citrix.com, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, tim@xen.org, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org, yang.z.zhang@intel.com List-Id: xen-devel@lists.xenproject.org >>> On 08.12.14 at 09:52, wrote: > On 2014/12/4 23:52, Jan Beulich wrote: >>>>> On 01.12.14 at 10:24, wrote: >>> We need to use reserved device memory maps with multiple times, so >>> provide just one common function should be friend. >> >> I'm not going to repeat earlier comments; the way this is done right >> now it's neither a proper runtime function nor a proper init time one. >> > > Actually I tried to do this in runtime as I comments in patch head. But > maybe you hope I should return rdm_map directly, and nr_entries as a > in/out parameter, right? As said numerous times before - either you invoke the function once (early on) and subsequently access the retrieved data via global variables, or each invocation returns both the count and the array (which, if any, of them via return value and which via indirection is secondary). Jan