Re: [PATCH v3 06/10] powerpc/vas: Map paste address only if window is active

2022-02-15 Thread Haren Myneni
On Mon, 2022-02-14 at 13:20 +1000, Nicholas Piggin wrote: > Excerpts from Haren Myneni's message of January 22, 2022 5:58 am: > > The paste address mapping is done with mmap() after the window is > > opened with ioctl. But the window can be closed due to lost credit > > due to core removal before m

Re: [PATCH v3 06/10] powerpc/vas: Map paste address only if window is active

2022-02-13 Thread Nicholas Piggin
Excerpts from Haren Myneni's message of January 22, 2022 5:58 am: > > The paste address mapping is done with mmap() after the window is > opened with ioctl. But the window can be closed due to lost credit > due to core removal before mmap(). So if the window is not active, > return mmap() failure

[PATCH v3 06/10] powerpc/vas: Map paste address only if window is active

2022-01-21 Thread Haren Myneni
The paste address mapping is done with mmap() after the window is opened with ioctl. But the window can be closed due to lost credit due to core removal before mmap(). So if the window is not active, return mmap() failure with -EACCES and expects the user space reissue mmap() when the window is a