]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries/vas: Reopen windows with DLPAR core add
authorHaren Myneni <haren@linux.ibm.com>
Tue, 1 Mar 2022 01:15:04 +0000 (17:15 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 7 Mar 2022 13:04:55 +0000 (00:04 +1100)
commit1c31943816f69c37dc4a6a997e3f2216302f13eb
tree5e263334057951f210e55828e44b214a1635e356
parentf102924aad65559c8419abf7581a58f710c43327
powerpc/pseries/vas: Reopen windows with DLPAR core add

VAS windows can be closed in the hypervisor due to lost credits
when the core is removed and the kernel gets fault for NX
requests on these inactive windows. If the NX requests are
issued on these inactive windows, OS gets page faults and the
paste failure will be returned to the user space. If the lost
credits are available later with core add, reopen these windows
and set them active. Later when the OS sees page faults on these
active windows, it creates mapping on the new paste address.
Then the user space can continue to use these windows and send
HW compression requests to NX successfully.

Signed-off-by: Haren Myneni <haren@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/d9f360e21355e6826142c81146acfa9b60bc7ecc.camel@linux.ibm.com
arch/powerpc/platforms/pseries/vas.c