Re: [PATCH v1 0/3] Add ioctls to map grant refs on the external backing storage

2023-04-22 Thread Oleksii Moisieiev
olution may be (and is) not correct, but my intend is to start the discussion in order to produce the appropriate solution. Best regards, Oleksii. On 02.01.23 15:41, Oleksii Moisieiev wrote: Hello, Let me introduce the new ioctls, which are intended to allow gntdev to map scatter-gather

[PATCH v1 2/3] dma-buf: add dma buffer release notifier callback

2023-01-03 Thread Oleksii Moisieiev
gntdev refs export and grant refs should be unmapped before dma buffer release. Signed-off-by: Oleksii Moisieiev --- drivers/dma-buf/dma-buf.c | 44 +++ include/linux/dma-buf.h | 15 + 2 files changed, 59 insertions(+) diff --git a/drivers/dma-b

[PATCH v1 3/3] xen/grant-table: add new ioctls to map dmabuf to existing fd

2023-01-03 Thread Oleksii Moisieiev
uffer should be detroyed. IOCTL_GNTDEV_DMABUF_MAP_WAIT_RELEASED - wait for timeout until buffer is completely destroyed and gnt refs unmapped so domain could free grant pages. Signed-off-by: Oleksii Moisieiev --- drivers/xen/gntdev-common.h | 8 +- drivers/xen/gntdev

Re: AW: [PATCH v1 0/3] Add ioctls to map grant refs on the external backing storage

2023-01-03 Thread Oleksii Moisieiev
On 02.01.23 18:36, Koenig, Christian wrote: [AMD Official Use Only - General] Sorry for the messed up mail. We currently have mail problems here at AMD. Von: Oleksii Moisieiev <mailto:oleksii_moisie...@epam.com> Gesendet: Montag, 2. Januar 2023 14:41 A

[PATCH v1 0/3] Add ioctls to map grant refs on the external backing storage

2023-01-03 Thread Oleksii Moisieiev
MB call to create backing storage buffer. --- Oleksii Moisieiev (3): xen/grant-table: save page_count on map and use if during async unmapping dma-buf: add dma buffer release notifier callback xen/grant-table: add new ioctls to map dmabuf to existing fd drivers/dma-buf/dma-buf.c | 44

[PATCH v1 1/3] xen/grant-table: save page_count on map and use if during async unmapping

2023-01-03 Thread Oleksii Moisieiev
o provide the expected page_count during map call so refs could be unmapped properly without unneeded defers. Signed-off-by: Oleksii Moisieiev --- drivers/xen/grant-table.c | 16 +++- include/xen/grant_table.h | 3 +++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/driv

Issue on unmap_grant_pages before releasing dmabuf

2022-10-20 Thread Oleksii Moisieiev
Greetings. I need your advise about the problem I'm facing right now: I'm working on the new type of dmabuf export implementation. This is going to be new ioctl to the gntdev and it's purpose is to use external buffer, provided by file descriptor as the backing storage during export to grant refs

Re: Issue on unmap_grant_pages before releasing dmabuf

2022-10-20 Thread Oleksii Moisieiev
On Wed, Oct 19, 2022 at 02:30:13PM +0200, Juergen Gross wrote: > On 19.10.22 12:43, Oleksii Moisieiev wrote: > > Greetings. > > > > I need your advise about the problem I'm facing right now: > > I'm working on the new type of dmabuf export implementation. Thi