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)
commitc656cfe571a9b8b882e31177f554bd79141fc015
tree5e263334057951f210e55828e44b214a1635e356
parent8ef7b9e1765a52c8023d9133a2438ac9f6da486a
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