From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ag06d-00059z-VX for qemu-devel@nongnu.org; Tue, 15 Mar 2016 21:18:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ag06b-00071A-3q for qemu-devel@nongnu.org; Tue, 15 Mar 2016 21:18:35 -0400 Date: Wed, 16 Mar 2016 12:09:37 +1100 From: David Gibson Message-ID: <20160316010937.GV9032@voom> References: <1457974600-13828-1-git-send-email-clg@fr.ibm.com> <1457974600-13828-12-git-send-email-clg@fr.ibm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xMJbWctQEcNQiBqK" Content-Disposition: inline In-Reply-To: <1457974600-13828-12-git-send-email-clg@fr.ibm.com> Subject: Re: [Qemu-devel] [PATCH 11/17] ppc: Initialize AMOR in PAPR mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?C=E9dric?= Le Goater Cc: Thomas Huth , qemu-ppc@nongnu.org, qemu-devel@nongnu.org --xMJbWctQEcNQiBqK Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 14, 2016 at 05:56:34PM +0100, C=E9dric Le Goater wrote: > From: Benjamin Herrenschmidt >=20 > Make sure we give the guest full authorization >=20 > Signed-off-by: Benjamin Herrenschmidt Reviewed-by: David Gibson I'm guessing this one is a fix that belongs in 2.6, but I'm not entirely certain. > --- > target-ppc/translate_init.c | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c > index 68abd847a251..c921d9f53984 100644 > --- a/target-ppc/translate_init.c > +++ b/target-ppc/translate_init.c > @@ -8542,6 +8542,7 @@ void cpu_ppc_set_papr(PowerPCCPU *cpu) > { > CPUPPCState *env =3D &cpu->env; > ppc_spr_t *lpcr =3D &env->spr_cb[SPR_LPCR]; > + ppc_spr_t *amor =3D &env->spr_cb[SPR_AMOR]; > =20 > /* PAPR always has exception vectors in RAM not ROM. To ensure this, > * MSR[IP] should never be set. > @@ -8563,6 +8564,9 @@ void cpu_ppc_set_papr(PowerPCCPU *cpu) > */ > env->spr[SPR_LPCR] =3D lpcr->default_value; > =20 > + /* Set a full AMOR so guest can use the AMR as it sees fit */ > + env->spr[SPR_AMOR] =3D amor->default_value =3D 0xffffffffffffffffull; > + > /* Tell KVM that we're in PAPR mode */ > if (kvm_enabled()) { > kvmppc_set_papr(cpu); --=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 --xMJbWctQEcNQiBqK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJW6LJRAAoJEGw4ysog2bOSV8IQAKIdsDCiNr76d5jdZoYyPxmZ cf/XeKrAYVfgagqaiMKGbaWSWanlPlarOJZMViYb9/Ibq+G4oAplbkXp+XvUaYrJ S67/OARDb/OipCh2E0p6CyN7ZSHWR7cyV+Mkiut/2QLKkQoylzlyrcC7A/Tard9P C/uk45fFF30J+5t4KH3IpI/fnIYemjb7+0JHAfMZaxtxspdavJMlrcGxa+ZOWLAh ToIt5kq/qi0Uz7YmjdagEyFeDRRgCaO/zah9tbb1g385dp+5gnVbO3OHV+yE3gQD KoZq/Ei+zgXzu2YvCqJO2LsrxWkw3JEMVgfMzDd1DRuO18Hh5vTOtet8WAOy4xqJ +nksLdJlXL47rwkUVSLmyK+EMB/kA9R/kxbc1kLbjVjm5W5Cd3HuY87jebjmy3gQ Ks2aMwadGupBwfOEaIdn7d+mcoTu4Cll33FxDx3vjSIXEVbA2ZgKKWp8GI8wlKy9 ThnxjC/knvlrZNM+jgs275Hhs80HhmKibxw6cAKT2YVx/y/JODa/ULNl03beW9Gw 1GhcIyCixDN4ZTzaORIHL043zb6Q5i+y+VuqOw8j8s7uFwsgWVtLSY3YcyoUWFL+ /epkOr7Of6sCui7F8pDbiGbAUi3/vJKhpCmD4UojtSOIQo3EinW17kFMGbC9fSMQ VgggaDub5gf24e5/IhuO =Ty1q -----END PGP SIGNATURE----- --xMJbWctQEcNQiBqK--