From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJv1f-0005aL-8x for qemu-devel@nongnu.org; Sun, 03 Jul 2016 23:58:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJv1b-0001a6-2B for qemu-devel@nongnu.org; Sun, 03 Jul 2016 23:58:26 -0400 Date: Mon, 4 Jul 2016 13:53:01 +1000 From: David Gibson Message-ID: <20160704035301.GD2919@voom.fritz.box> References: <146741287399.948.15988269239450224065.stgit@bahia.lan> <146741289262.948.5461692071180511385.stgit@bahia.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EP0wieDxd4TSJjHq" Content-Disposition: inline In-Reply-To: <146741289262.948.5461692071180511385.stgit@bahia.lan> Subject: Re: [Qemu-devel] [PATCH v2 2/7] ppc: simplify max_smt initialization in ppc_cpu_realizefn() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Greg Kurz Cc: Benjamin Herrenschmidt , qemu-devel@nongnu.org, Alexander Graf , qemu-ppc@nongnu.org, Cedric Le Goater , Bharata B Rao , Scott Wood , Igor Mammedov --EP0wieDxd4TSJjHq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 02, 2016 at 12:41:32AM +0200, Greg Kurz wrote: > kvmppc_smt_threads() returns 1 if KVM is not enabled. >=20 > Signed-off-by: Greg Kurz Applied to ppc-for-2.7 > --- > target-ppc/translate_init.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c > index 843f19b748fb..a06bf50b65d4 100644 > --- a/target-ppc/translate_init.c > +++ b/target-ppc/translate_init.c > @@ -9516,7 +9516,7 @@ static void ppc_cpu_realizefn(DeviceState *dev, Err= or **errp) > PowerPCCPUClass *pcc =3D POWERPC_CPU_GET_CLASS(cpu); > Error *local_err =3D NULL; > #if !defined(CONFIG_USER_ONLY) > - int max_smt =3D kvm_enabled() ? kvmppc_smt_threads() : 1; > + int max_smt =3D kvmppc_smt_threads(); > #endif > =20 > #if !defined(CONFIG_USER_ONLY) >=20 --=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 --EP0wieDxd4TSJjHq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJXed2dAAoJEGw4ysog2bOS1esP/3BMypGkW8KiFHIzOKS8f1dV /BgbkgzDFbTVCOTbYMhD1P5dqXExEADISm4yU/njKNGfGICGKeUkxYCapscvSJsO 7bTO4CASTdwVQffx1kDcTUepgB/ItEbbnsknfiArVReGhZUZES51wht4F7eSKNRa eBeBYcKG66YM1SmuiFrGCjHQxQ3LNj3nijHlD5Q93sorQH3VkbBlyD5fSPRUiQII xg47ZODxGZOw/GUN6qyqWIUoNgKmJ6/UfumjIt1OmaFrjjMWtvjEsyCHeYNBNOWK qdzmdb0t9N9wuZRAA6nCM9rYVuuOmHrxRfSwoUN9Tby/A1ZLEPsfq8eGBGQBnK8v TrGX42pGn+vy06H45xtPVyWZI+7vGBp9Dpi9uMyW81zMWiCW1jNk7asGMzMJU119 Wu90KTt97a2o2PJYUHT5ugx8VmYQMT2BiXfzFgj6GSoAcaAV+PGJzkLRfTZlLd7Q ol4yEllVa1xuQIvvA0sgr4JEwpZqqjcDArbMDHri0wKyNXZN6DwHNG9HuAg+0xNs Na0GTLJzJazvzmlz92QrvY/zrSJ14Fk9AONwBAo88LxDlVvUDg7kvmOYPzvoMCmu pYwHrMTy19KoN/6BWubbUrAT4Bb8q9N3IQjwavgCxcBmGrsWKhZGuo3TIv5JxGTT KDI3hMbvjZT1Bn5+r5Hs =Sszt -----END PGP SIGNATURE----- --EP0wieDxd4TSJjHq--