From: Dario Faggioli <dario.faggioli@citrix.com>
To: Matt Wilson <msw@amazon.com>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>,
xen-devel@lists.xen.org, David Vrabel <david.vrabel@citrix.com>,
Elena Ufimtseva <ufimtseva@gmail.com>
Subject: Re: [PATCH RFC 1/2] linux/vnuma: vnuma support for pv guest
Date: Thu, 29 Aug 2013 00:21:40 +0200 [thread overview]
Message-ID: <1377728500.5255.51.camel@Abyss> (raw)
In-Reply-To: <20130828163824.GA19277@u109add4315675089e695.ant.amazon.com>
[-- Attachment #1.1: Type: text/plain, Size: 2629 bytes --]
On mer, 2013-08-28 at 09:38 -0700, Matt Wilson wrote:
> On Wed, Aug 28, 2013 at 12:01:48PM -0400, Konrad Rzeszutek Wilk wrote:
> > That would also parallel the work you do with ACPI right?
>
> Yes.
>
I see. It's hard to comment, since I have only seen some previous (off
list) versiona of Elena's code (and won't have time to properly review
this one untill Monday), and I haven't seen Matt's code at all...
Anyway...
> > We could enable ACPI parsing in a PV guest and provide one table - the
> > SLIT (or SRAT).
>
> Right, it'd be the SRAT table for the resource affinity and a SLIT
> table for the locality/distance information.
>
... I see the point in sharing code for HVM and PV. However, I'm still
not convinced this would be something valuable to do with this specific
hunk, mostly because it looks really easy and clean to hook up at the
numa_init() stage (i.e., what Elena is doing), that anything else I can
think of looks like more work. :-P
> > But I don't know enough about SRAT to know whether this is something
> > that represents truly everything we need?
>
> The SRAT table has processor objects and memory objects. A processor
> object maps a logical processor number to its initial APIC ID and
> provides the node information. A memory object specifies the start and
> length for a memory region and provides the node information.
>
> For SLIT, the entries are a matrix of distances.
>
> Here are the structs:
>
> [snip]
>
Ok, thanks for the very useful info. What would be interesting to know
is where and how Linux reads the information from ACPI and fill these
structures.
The current Elena's approach is 1 hypercall, during early NUMA
initialization, and that is pretty self-contained (which is the thing I
like most about it).
How easy is it to look up the places where each one of the tables gets
filled, intercept the code/calls doing that, and replace it properly for
our use case? How easy is it to "xen-ify" those call sites (stuff like
'#ifdef CONFIG_XEN' or/and is_xen_domain() )? How many hypercalls would
it require? Is it possible to have one doing all the work, or would we
need something like one for each table?
As I said, I can't check the details about it right now, but it sounds
like more work than Elena's xen_numa_init().
Thanks and Regards,
Dario
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2013-08-28 22:21 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-27 8:52 [PATCH RFC 0/2] linux/vnuma: vnuma topology PV guest Elena Ufimtseva
2013-08-27 8:52 ` [PATCH RFC 1/2] linux/vnuma: vnuma support for pv guest Elena Ufimtseva
2013-08-27 13:52 ` David Vrabel
2013-08-27 14:33 ` Konrad Rzeszutek Wilk
2013-08-28 13:41 ` Elena Ufimtseva
2013-08-28 23:12 ` Dario Faggioli
2013-08-29 14:07 ` Konrad Rzeszutek Wilk
2013-08-28 1:27 ` Matt Wilson
2013-08-28 1:37 ` Matt Wilson
2013-08-28 13:08 ` Dario Faggioli
2013-08-28 13:39 ` George Dunlap
2013-08-28 16:01 ` Konrad Rzeszutek Wilk
2013-08-28 16:38 ` Matt Wilson
2013-08-28 20:10 ` Elena Ufimtseva
2013-08-28 23:25 ` Matt Wilson
2013-08-29 9:16 ` George Dunlap
2013-08-28 22:21 ` Dario Faggioli [this message]
2013-08-29 0:11 ` Matt Wilson
2013-08-29 13:41 ` David Vrabel
2013-08-29 14:23 ` Konrad Rzeszutek Wilk
2013-08-29 14:32 ` George Dunlap
2013-08-29 14:51 ` Konrad Rzeszutek Wilk
2013-08-29 22:29 ` Dario Faggioli
2013-08-30 12:57 ` Konrad Rzeszutek Wilk
2013-08-27 8:53 ` [PATCH RFC 2/2] linux/vnuma: Enables NUMA support for PV guest Elena Ufimtseva
2013-08-27 13:35 ` David Vrabel
2013-08-27 15:36 ` Konrad Rzeszutek Wilk
2013-08-27 14:17 ` Konrad Rzeszutek Wilk
2013-08-27 13:48 ` [PATCH RFC 0/2] linux/vnuma: vnuma topology " David Vrabel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1377728500.5255.51.camel@Abyss \
--to=dario.faggioli@citrix.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=david.vrabel@citrix.com \
--cc=msw@amazon.com \
--cc=ufimtseva@gmail.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.