]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/vas: Add paste address mmap fault handler
authorHaren Myneni <haren@linux.ibm.com>
Tue, 1 Mar 2022 01:12:41 +0000 (17:12 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 7 Mar 2022 13:04:55 +0000 (00:04 +1100)
commit7890aeb8343b88352d9261d27a3d2b6c718e0bf5
treefb5cf814fac1ae3be7e278f5b3c6139d40fc467f
parentbad29d18e88e94c0d592583b2da7aed3b478c77c
powerpc/vas: Add paste address mmap fault handler

The user space opens VAS windows and issues NX requests by pasting
CRB on the corresponding paste address mmap. When the system lost
credits due to core removal, the kernel has to close the window in
the hypervisor and make the window inactive by unmapping this paste
address. Also the OS has to handle NX request page faults if the user
space issue NX requests.

This handler maps the new paste address with the same VMA when the
window is active again (due to core add with DLPAR). Otherwise
returns paste failure.

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