From: "Burakov, Anatoly" <anatoly.burakov@intel.com>
To: Thomas Monjalon <thomas@monjalon.net>
Cc: dev@dpdk.org, Olivier Matz <olivier.matz@6wind.com>
Subject: Re: [dpdk-dev] [PATCH] mem: clarify documentation for rte_mem_virt2iova
Date: Tue, 26 Nov 2019 12:54:52 +0000 [thread overview]
Message-ID: <6c07652f-8737-ba67-26ca-3646e86e3c3f@intel.com> (raw)
In-Reply-To: <6968599.34HkkUUQbD@xps>
On 25-Nov-19 11:32 PM, Thomas Monjalon wrote:
> 18/11/2019 14:14, Olivier Matz:
>> On Thu, Nov 14, 2019 at 02:13:06PM +0000, Anatoly Burakov wrote:
>>> It may not be immediately clear that rte_mem_virt2iova does not actually
>>> check the internal memseg table, and will instead either return VA (in
>>> IOVA as VA mode), or will fall back to kernel page table walk (in IOVA
>>> as PA mode).
>>>
>>> Add a note to API documentation indicating the above.
>>>
>>> Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
>>
>> Reviewed-by: Olivier Matz <olivier.matz@6wind.com>
>
> Applied, thanks
>
There are multiple places where this function is used, and its use is
not compatible with external memory. I think we should replace all
usages of this function to rte_mem_virt2memseg(), and rename this
function, because its actual intended usage is *not* VA->IOVA
translation, but instead is akin to figuring out what IOVA address
*should* be with current IOVA settings, regardless of any internal page
table and current VFIO mappings.
--
Thanks,
Anatoly
prev parent reply other threads:[~2019-11-26 12:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-14 14:13 [dpdk-dev] [PATCH] mem: clarify documentation for rte_mem_virt2iova Anatoly Burakov
2019-11-18 13:14 ` Olivier Matz
2019-11-25 23:32 ` Thomas Monjalon
2019-11-26 12:54 ` Burakov, Anatoly [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6c07652f-8737-ba67-26ca-3646e86e3c3f@intel.com \
--to=anatoly.burakov@intel.com \
--cc=dev@dpdk.org \
--cc=olivier.matz@6wind.com \
--cc=thomas@monjalon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.