From: "Jan Beulich" Subject: Re: _PXM, NUMA, and all that goodnesss Date: Thu, 13 Feb 2014 11:40:03 +0000 Message-ID: <52FCBD23020000780011C080@nat28.tlf.novell.com> References: <20140212195005.GB29910@phenom.dumpdata.com> <52FCA7A0020000780011BF88@nat28.tlf.novell.com> <52FCAAB9.3020908@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WDueG-0008FY-DS for xen-devel@lists.xenproject.org; Thu, 13 Feb 2014 11:40:08 +0000 In-Reply-To: <52FCAAB9.3020908@citrix.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: Andrew Cooper Cc: ufimtseva@gmail.com, andrew.thomas@oracle.com, george.dunlap@eu.citrix.com, kurt.hackel@oracle.com, jun.nakajima@intel.com, xen-devel , boris.ostrovsky@oracle.com List-Id: xen-devel@lists.xenproject.org >>> On 13.02.14 at 12:21, Andrew Cooper wrote: > On 13/02/14 10:08, Jan Beulich wrote: >>> 2) Would it be better to just look at making the initial domain >>> be able to figure out the NUMA topology and assign the >>> correct 'numa_node' in the PCI fields? >> As said above, I don't think this should be exposed to and >> handled in Dom0's kernel. It's the tool stack to have the overall >> view here. > > This is where things get awkward. Dom0 has the real APCI tables and is > the only entity with the ability to evaluate the _PXM() attributes to > work out which PCI devices belong to which NUMA nodes. On the other > hand, its idea of cpus and numa is stifled by being virtual and > generally not having access to all the cpus it can see as present in the > ACPI tables. > > It would certainly be nice for dom0 to report the _PXM() attributes back > up to Xen, but I have no idea how easy/hard it would be. But that's being done already (see Konrad's original post), just that the hypervisor doesn't really make use of the information at present. Jan