From: "Jan Beulich" Subject: Re: [PATCH v2 1/4] pci: Do not ignore device's PXM information Date: Wed, 07 Jan 2015 15:44:02 +0000 Message-ID: <54AD6252020000780005268F@mail.emea.novell.com> References: <1420510737-22813-1-git-send-email-boris.ostrovsky@oracle.com> <1420510737-22813-2-git-send-email-boris.ostrovsky@oracle.com> <54AD052F0200007800052277@mail.emea.novell.com> <54AD45D6.6040601@oracle.com> <54AD598D02000078000525AA@mail.emea.novell.com> <54AD514E.3030106@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <54AD514E.3030106@oracle.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: Boris Ostrovsky Cc: wei.liu2@citrix.com, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com, dario.faggioli@citrix.com, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org, ufimtseva@gmail.com, keir@xen.org List-Id: xen-devel@lists.xenproject.org >>> On 07.01.15 at 16:31, wrote: > On 01/07/2015 10:06 AM, Jan Beulich wrote: >> >>>> Of course an additional question would be whether the node wouldn't >>>> better go into struct arch_pci_dev - that depends on whether we >>>> expect ARM to be using NUMA... >>> Since we have CPU topology in common code I thought this would be >>> arch-independent as well. >> Not sure what you're referring to here: What common piece of data >> stores the node of a particular CPU? cpu_to_node[] clearly is x86- >> specific. > > I meant that we have common interface (sysctl) for querying topology and > PCI is a common IO bus (unlike CPUs) so I figured I'd keep node in > common part as well. Makes little sense: ARM stubs out cpu_to_node(), so a similar mechanism could be used to hide the fact that some arch-es may have no node associated with a PCI device. Jan