Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify the lifetime of the return value of rte_mem_virt2iova #60

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/eal/linux/eal_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ rte_mem_virt2iova(const void *virtaddr)
/*
* For each hugepage in hugepg_tbl, fill the physaddr value. We find
* it by browsing the /proc/self/pagemap special file.
*
* NOTE: Unless a kernel component (such as VFIO_NOIOMMU) locks the memory
* in place, the kernel may move the memory at any time (kcompactd, autonuma,
* etc etc) so one should only rely on this address being a constant in the
* general case.
*/
static int
find_physaddrs(struct hugepage_file *hugepg_tbl, struct hugepage_info *hpi)
Expand Down