From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: [PATCH v2] x86: correct socket_cpumask allocation Date: Thu, 9 Jul 2015 11:11:40 +0200 Message-ID: <1436433100.22672.288.camel@citrix.com> References: <1436430376-31276-1-git-send-email-chao.p.peng@linux.intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5923354641732333278==" Return-path: In-Reply-To: <1436430376-31276-1-git-send-email-chao.p.peng@linux.intel.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: Chao Peng Cc: andrew.cooper3@citrix.com, boris.ostrovsky@oracle.com, keir@xen.org, JBeulich@suse.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org --===============5923354641732333278== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-Md0ms48gq4mfoWwv8Ldv" --=-Md0ms48gq4mfoWwv8Ldv Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2015-07-09 at 16:26 +0800, Chao Peng wrote: > For booting cpu, the socket number is not needed to be 0 so > it needs to be computed by cpu number. >=20 > For secondary cpu, phys_proc_id is not valid in CPU_PREPARE > notifier(cpu_smpboot_alloc), so cpu_to_socket(cpu) can't be used. > Instead, pre-allocate secondary_cpu_mask in cpu_smpboot_alloc() > and later consume it in smp_store_cpu_info(). >=20 > This patch also change socket_cpumask type from 'cpumask_var_t *' > to 'cpumask_t **' so that smaller NR_CPUS works. >=20 > Reported-by: Boris Ostrovsky > Signed-off-by: Chao Peng > --- > Changes in v2: > * Fix case that booting cpu is on the socket other than socket0. > As far as this goes: Tested-by: Dario Faggioli Regards, Dario --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-Md0ms48gq4mfoWwv8Ldv 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 v2 iEYEABECAAYFAlWeOtUACgkQk4XaBE3IOsSK3ACgjOXqdIUiJzwPl5B6sLgQGsoD 2GMAn3rDOOKPOYUjYPGlxBVA5CYa6FF4 =7n1U -----END PGP SIGNATURE----- --=-Md0ms48gq4mfoWwv8Ldv-- --===============5923354641732333278== 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 --===============5923354641732333278==--