Skip to content

Conversation

@ldorau
Copy link
Contributor

@ldorau ldorau commented Oct 31, 2024

No description provided.

@ldorau ldorau force-pushed the TEST_Fix_devdax_open_ipc_handle branch 2 times, most recently from 91288bd to fc174ed Compare October 31, 2024 11:38
ldorau added 10 commits October 31, 2024 14:12
Add utils_align_ptr_down_size_up() to align
a pointer down and a size up (for mmap()/munmap()).

Signed-off-by: Lukasz Dorau <[email protected]>
Fix handling arguments of devdax_alloc():
- alignment has to be a power of 2
  and a divider or a multiple of the page size (2MB),

Signed-off-by: Lukasz Dorau <[email protected]>
devdax_open_ipc_handle() has to use the path of the remote
/dev/dax got from the IPC handle, not the local one.

devdax_open_ipc_handle() has to use also the memory protection
got from the IPC handle, so let's add the memory protection
to the IPC handle.

devdax_open_ipc_handle() should mmap only the required range of memory,
not the whole /dev/dax device, so let's add the length of the allocation
to the IPC handle.

devdax_close_ipc_handle() should unmap only the required range of memory,
not the whole /dev/dax device.

Fixes: oneapi-src#846

Signed-off-by: Lukasz Dorau <[email protected]>
Signed-off-by: Lukasz Dorau <[email protected]>
Some memory providers (currently the devdax and the file providers)
do not support the free() operation (free() always returns
the UMF_RESULT_ERROR_NOT_SUPPORTED error).

Add the UMF_TEST_PROVIDER_FREE_NOT_SUPPORTED define
and the get_umf_result_of_free macro() to ipcFixtures.hpp
to enable running umfIpcTest tests when free() is not supported.

Signed-off-by: Lukasz Dorau <[email protected]>
@ldorau ldorau force-pushed the TEST_Fix_devdax_open_ipc_handle branch from 10a6d68 to 06d8a47 Compare October 31, 2024 13:15
@ldorau ldorau closed this Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant