From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: [v8][PATCH 02/17] introduce XEN_DOMCTL_set_rdm Date: Tue, 09 Dec 2014 07:29:00 +0000 Message-ID: <5486B2CC020000780004DF61@mail.emea.novell.com> References: <1417425875-9634-1-git-send-email-tiejun.chen@intel.com> <1417425875-9634-3-git-send-email-tiejun.chen@intel.com> <54808CC3020000780004CCC8@mail.emea.novell.com> <54853FE3.9030703@intel.com> <548572B5020000780004D9BC@mail.emea.novell.com> <5486608F.1050700@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5486608F.1050700@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 09.12.14 at 03:38, wrote: > On 2014/12/8 16:43, Jan Beulich wrote: >>>>> On 08.12.14 at 07:06, wrote: >>> I take a quick look at this but looks we have no this exact value that >>> we can get directly. >> >> You need some upper bound. Whether you introduce a properly > > In theory, we may have at most the number, domain(16bit) x bus(8bit) x > device(5bit) x function(3bit), 2^16 x 2^8 x 2^5 x 2^3 = 0x1000000, so > could we define a macro like this, > > #define PCI_DEVICES_NUM_UP 0x1000000 16+8+5+3 = 32 for me. And an upper bound of 4G is surely not useful here in any way. Jan