Re: [PATCH] powerpc/dexcr: Move HASHCHK trap handler

2023-09-21 Thread Michael Ellerman
On Fri, 25 Aug 2023 11:49:10 +1000, Benjamin Gray wrote: > To determine if a trap was caused by a HASHCHK instruction, we inspect > the user instruction that triggered the trap. However this may sleep > if the page needs to be faulted in. > > Move the HASHCHK handler logic to after we allow IRQs,

Re: [PATCH] powerpc/dexcr: Move HASHCHK trap handler

2023-09-14 Thread Michael Ellerman
Benjamin Gray writes: > To determine if a trap was caused by a HASHCHK instruction, we inspect > the user instruction that triggered the trap. However this may sleep > if the page needs to be faulted in. It would be good to include the output from the might_sleep() check that failed. And I think

[PATCH] powerpc/dexcr: Move HASHCHK trap handler

2023-08-24 Thread Benjamin Gray
To determine if a trap was caused by a HASHCHK instruction, we inspect the user instruction that triggered the trap. However this may sleep if the page needs to be faulted in. Move the HASHCHK handler logic to after we allow IRQs, which is fine because we are only interested in HASHCHK if it's a u