On Tue, Jun 21, 2016 at 11:48:51PM +0200, Cédric Le Goater wrote: > From: Benjamin Herrenschmidt <b...@kernel.crashing.org> > > Recent server processors use the Hypervisor Emulation Assistance > interrupt for illegal instructions and *some* type of SPR accesses. > > Also the code was always generating inval instructions even for priv > violations due to setting the wrong flags > > Finally, the checking for PR/HV was open coded everywhere. > > 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). > > Signed-off-by: Benjamin Herrenschmidt <b...@kernel.crashing.org> > [clg: fixed checkpatch.pl errors ] > Signed-off-by: Cédric Le Goater <c...@kaod.org>
Reviewed-by: David Gibson <da...@gibson.dropbear.id.au> -- 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
signature.asc
Description: PGP signature