Re: [PATCH 14/19] powerpc: Add ppc_strict_facility_enable boot option

2017-09-01 Thread Benjamin Herrenschmidt
On Thu, 2015-10-29 at 11:44 +1100, Anton Blanchard wrote: > > +extern void msr_check_and_set(unsigned long bits); > +extern bool strict_msr_control; > +extern void __msr_check_and_clear(unsigned long bits); > +static inline void msr_check_and_clear(unsigned long bits) > +{ > + if (strict_ms

[PATCH 14/19] powerpc: Add ppc_strict_facility_enable boot option

2015-10-28 Thread Anton Blanchard
Add a boot option that strictly manages the MSR unavailable bits. This catches kernel uses of FP/Altivec/SPE that would otherwise corrupt user state. Signed-off-by: Anton Blanchard --- Documentation/kernel-parameters.txt | 6 ++ arch/powerpc/include/asm/reg.h | 9 + arch/pow

[PATCH 14/19] powerpc: Add ppc_strict_facility_enable boot option

2015-10-27 Thread Anton Blanchard
Add a boot option that strictly manages the MSR unavailable bits. This catches kernel uses of FP/Altivec/SPE that would otherwise corrupt user state. Signed-off-by: Anton Blanchard --- Documentation/kernel-parameters.txt | 6 ++ arch/powerpc/include/asm/reg.h | 9 + arch/pow