Re: [Xen-devel] API to query NUMA node of mfn

2017-07-10 Thread Konrad Rzeszutek Wilk
On Mon, Jul 10, 2017 at 03:35:33PM +0200, Olaf Hering wrote: > On Mon, Jul 10, Konrad Rzeszutek Wilk wrote: > > > Soo I wrote some code for exactly this for Xen 4.4.4 , along with > > creation of a PGM map to see the NUMA nodes locality. > > Are you planning to prepare that for staging at some po

Re: [Xen-devel] API to query NUMA node of mfn

2017-07-10 Thread Olaf Hering
On Mon, Jul 10, Konrad Rzeszutek Wilk wrote: > Soo I wrote some code for exactly this for Xen 4.4.4 , along with > creation of a PGM map to see the NUMA nodes locality. Are you planning to prepare that for staging at some point? I have not checked this series is already merged. Olaf signature.

Re: [Xen-devel] API to query NUMA node of mfn

2017-07-10 Thread Konrad Rzeszutek Wilk
On Mon, Jul 10, 2017 at 04:41:35AM -0600, Jan Beulich wrote: > >>> On 10.07.17 at 12:10, wrote: > > I would like to verify on which NUMA node the PFNs used by a HVM guest > > are located. Is there an API for that? Something like: > > > > foreach (pfn, domid) > > mfns_per_node[pfn_to_node(pf

Re: [Xen-devel] API to query NUMA node of mfn

2017-07-10 Thread Jan Beulich
>>> On 10.07.17 at 12:10, wrote: > I would like to verify on which NUMA node the PFNs used by a HVM guest > are located. Is there an API for that? Something like: > > foreach (pfn, domid) > mfns_per_node[pfn_to_node(pfn)]++ > foreach (node) > printk("%x %x\n", node, mfns_per_node[node