From: Dario Faggioli <dario.faggioli@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: lccycc123@gmail.com, msw@linux.com, stefano.stabellini@eu.citrix.com, george.dunlap@eu.citrix.com, Elena Ufimtseva <ufimtseva@gmail.com>, Ian.Campbell@citrix.com, ian.jackson@eu.citrix.com, xen-devel <xen-devel@lists.xenproject.org>, keir@xen.org
Subject: Re: [Xen-devel] [PATCH v3 1/7] xen: vNUMA support for PV guests
Date: Tue, 19 Nov 2013 15:35:12 +0100
Message-ID: <1384871712.19880.90.camel@Abyss>

[ Retrieve Raw Message; Archives: gmane, marc.info ]

[Part 1 (text/plain, inline)]
On mar, 2013-11-19 at 14:01 +0000, Jan Beulich wrote:
> One thing that I only realized - what information is the guest
> supposed to use to know the number of virtual nodes it has
> (needed to size the arrays the handles here point to)?
> 
If I understand correctly what you're asking, the (current) answer is in
the Linux patch, here:

 http://bugs.xenproject.org/xen/mid/%3C1384811922-14642-2-git-send-email-ufimtseva@gmail.com%3E

which uses num_possible_cpus()

 http://lxr.linux.no/linux+v3.12/+code=num_possible_cpus

to size all the three arrays.

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)
[signature.asc (application/pgp-signature, inline)]
[Part 3 (text/plain, inline)]