powerpc/vas: Return paste instruction failure if no active window
authorHaren Myneni <haren@linux.ibm.com>
Tue, 1 Mar 2022 01:13:15 +0000 (17:13 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 7 Mar 2022 13:04:55 +0000 (00:04 +1100)
commitb5c63d90cc2de8ac6724fec84d1d72cfebcae41d
tree61ab44d743276c628bb355a87aadb859d634f6d8
parent1fe3a33ba0a37e7aa0df0acbe31d5dda7610c16e
powerpc/vas: Return paste instruction failure if no active window

The VAS window may not be active if the system looses credits and
the NX generates page fault when it receives request on unmap
paste address.

The kernel handles the fault by remap new paste address if the
window is active again, Otherwise return the paste instruction
failure if the executed instruction that caused the fault was
a paste.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Haren Myneni <haren@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/492b9aefd593061d51dda67ee4d2fc449c000dce.camel@linux.ibm.com
arch/powerpc/include/asm/ppc-opcode.h
arch/powerpc/platforms/book3s/vas-api.c