From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: [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> References: <1384806262-12532-1-git-send-email-ufimtseva@gmail.com> <1384806262-12532-2-git-send-email-ufimtseva@gmail.com> <528B7D350200007800104840@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8907199309759834700==" Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VimOd-00029m-8T for xen-devel@lists.xenproject.org; Tue, 19 Nov 2013 14:35:19 +0000 In-Reply-To: <528B7D350200007800104840@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: keir@xen.org, Ian.Campbell@citrix.com, lccycc123@gmail.com, george.dunlap@eu.citrix.com, msw@linux.com, stefano.stabellini@eu.citrix.com, ian.jackson@eu.citrix.com, Elena Ufimtseva , xen-devel List-Id: xen-devel@lists.xenproject.org --===============8907199309759834700== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-vWYUd4u1xcqoG8Jo6zPj" --=-vWYUd4u1xcqoG8Jo6zPj Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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)? >=20 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-uf= imtseva@gmail.com%3E which uses num_possible_cpus() http://lxr.linux.no/linux+v3.12/+code=3Dnum_possible_cpus to size all the three arrays. Dario --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-vWYUd4u1xcqoG8Jo6zPj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) iEYEABECAAYFAlKLdyAACgkQk4XaBE3IOsRHaQCghCvH7+OBW1Xu4azXEoWvwO77 wtoAn237BHMrO6QzZd5Hd//rbUDGXzIs =PuCB -----END PGP SIGNATURE----- --=-vWYUd4u1xcqoG8Jo6zPj-- --===============8907199309759834700== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============8907199309759834700==--