From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwhM2-0004Rn-UM for qemu-devel@nongnu.org; Sun, 24 May 2015 21:38:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YwhM1-0001c5-MQ for qemu-devel@nongnu.org; Sun, 24 May 2015 21:38:58 -0400 Date: Mon, 25 May 2015 11:30:02 +1000 From: David Gibson Message-ID: <20150525013002.GG6255@voom.redhat.com> References: <20150513102818.31240.99013.stgit@bahia.huguette.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aYDVKSzuImP48n7V" Content-Disposition: inline In-Reply-To: <20150513102818.31240.99013.stgit@bahia.huguette.org> Subject: Re: [Qemu-devel] [PATCH] spapr: ensure we have at least one XICS server List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Greg Kurz Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org, bharata@linux.vnet.ibm.com --aYDVKSzuImP48n7V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 13, 2015 at 12:29:33PM +0200, Greg Kurz wrote: > XICS needs to know the upper value for cpu_index as it is used to compute > the number of servers: >=20 > smp_cpus * kvmppc_smt_threads() / smp_threads >=20 > When passing -smp cpus=3D1,threads=3D9 on a POWER8 host, we end up with: >=20 > 1 * 8 / 9 =3D 0 >=20 > ... which leads to an assertion in both emulated: >=20 > Number of servers needs to be greater 0 > Aborted (core dumped) >=20 > ... and in-kernel XICS: >=20 > xics_kvm_realize: Assertion `icp->nr_servers' failed. > Aborted (core dumped) >=20 > With this patch, we are sure that nr_servers > 0. Passing the same bogus > -smp option then leads to: >=20 > qemu-system-ppc64: Cannot support more than 8 threads on PPC with KVM >=20 > ... which is a lot more explicit than the XICS errors. >=20 > Signed-off-by: Greg Kurz Looks sensible, thanks. Applied to spapr-next branch. --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --aYDVKSzuImP48n7V Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJVYnsaAAoJEGw4ysog2bOSBrkP/jwSUn3o2lVHhp7CaCvYu2zb aWeh3r2r6exj6wvsb8+v/Un0b5NKmbEDoA2U35SH4E/FceVqYJmv2cKI1Gr1OaNO 1hbAni4T3DJ2ky/bAktWT13Izb1beML1Vcjo5sc+wKXJ3zVBgC9hhr/FI5P2V95z U98HXBM1wTg46gKqbI2YLLRO1IjJDc/vGD2jnRHkwGlXX2RE//tJIMotZpwt2qxa wi58eP9PEAq6pcPXUJM2ov8u93HbndfyoWfNEmix6gfUloWY02909vB+AA7dd7+q 5LmOwY1yEAkmcizzm7wKPqTyx2ToUQX9NO0+2M58OxqsVj8N5m8jsaYj7lQc62BI ISw6LPYwhSBqRsl40qW27TVNB6zWbd6j7XuO6XzUFJG31NF3I/gAzroU5GWOD55E Jq0r5ZLaxg0zeJiIRzilXYy8uck1fNamyg54VJ5sMg2dg6nkDHDHLTPqbfNbXRBR 6gBIbjqE89sEXktRWJtfWh7NAudTB4vV1xS+hE5rnDgUoieZVHFbWXGCeF7+otlm YSoWmf3suTcBRYo2XXo8O0X7rApRcPhF0V7nxBPrLbhXhwhEca24aEIrgg3dJDua IT/Xsb5Tk3mER6a9DMSFn6/fVj0kHR/DvGyaaWpnzTVNH4gv0j+I+izfum63Adx5 KF/DoTLpf1vGzJi3uarq =+5uC -----END PGP SIGNATURE----- --aYDVKSzuImP48n7V--