From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFc5b-0005um-3y for qemu-devel@nongnu.org; Wed, 22 Jun 2016 02:56:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFc5W-0006sv-9f for qemu-devel@nongnu.org; Wed, 22 Jun 2016 02:56:42 -0400 Date: Wed, 22 Jun 2016 16:51:16 +1000 From: David Gibson Message-ID: <20160622065116.GP17957@voom.fritz.box> References: <1466545735-2555-1-git-send-email-clg@kaod.org> <1466545735-2555-7-git-send-email-clg@kaod.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nVYOjVWOcH+Ezkzp" Content-Disposition: inline In-Reply-To: <1466545735-2555-7-git-send-email-clg@kaod.org> Subject: Re: [Qemu-devel] [PATCH v2 06/10] ppc: Rework generation of priv and inval interrupts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?C=E9dric?= Le Goater Cc: qemu-ppc@nongnu.org, Alexander Graf , qemu-devel@nongnu.org, Benjamin Herrenschmidt --nVYOjVWOcH+Ezkzp Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 21, 2016 at 11:48:51PM +0200, C=E9dric Le Goater wrote: > From: Benjamin Herrenschmidt >=20 > Recent server processors use the Hypervisor Emulation Assistance > interrupt for illegal instructions and *some* type of SPR accesses. >=20 > Also the code was always generating inval instructions even for priv > violations due to setting the wrong flags >=20 > Finally, the checking for PR/HV was open coded everywhere. >=20 > This reworks it all, using little helper macros for checking, and > adding the HV interrupt (which gets converted back to program check > in the slow path of excp_helper.c on CPUs that don't want it). >=20 > Signed-off-by: Benjamin Herrenschmidt > [clg: fixed checkpatch.pl errors ] > Signed-off-by: C=E9dric Le Goater Reviewed-by: David Gibson --=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 --nVYOjVWOcH+Ezkzp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJXajVkAAoJEGw4ysog2bOS8ToQAOOdviFSUmqHuK3YIb1kAOg2 K+ooIpWMXHazPIidhFpKhsAJipOB1InVcUZ7v+KNhwXDJ2dSvzLOn4L0lnBHsQFa 22dEYcTIKQWXs5PvwZH8jA9Za2MgPYyxfx5on3OBiOq9/pCgCQl9In4W8qc6ZjYv YWVpeQKLnja1qu2Os4u3RTH5sy0kG7OglY9BUV/gFvmWQuKIFcEk409IBkHSU0Yb 6+QpFoZhfQbaLGOfhe84LlT3G++9b8EivcvnC+7HZAvQnbCLaAVvXd5Sui6Z632q /8+xjH8kZq7FqAii6us7l/hgo5yW3NT9V4OUQ2XDdyuoY8TNSTzUP+qDs5Y3pEVu ES/duU5iX1PKqXqaqJDHYsV/kBs2izoFHq2rB0gPbPRy+aIVP1O8/0RMIXv5nTiY qCmBjX2p9tQuxfEk87NgwYJgfsEPrlQDZOW89/SRQtwunL/wqOyHCz7PRA4XiWt1 bwIV5I0bbEVB7CYB+H/2gk45JxBOxO2Mo6a4zhEfcWf32PAN68JrJKbuzXkKGzO5 eqLf+4spx5+Tu6+k7dfH2kLvzEnW//4VwRzu3dPK5f7ULrgQzzAlVynkEzq1/wiU W1bdE9UJPe0lqkjS1JEvH77ghPvHkqKij+mGgUmHV86KfRLl7zz7dTBu647Tbf0n RvgFtAHL1NO0y2Cai8g/ =jaZ0 -----END PGP SIGNATURE----- --nVYOjVWOcH+Ezkzp--