From: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
To: "Burakov, Anatoly" <anatoly.burakov@intel.com>
Cc: Li Feng <fengli@smartx.com>,
Bruce Richardson <bruce.richardson@intel.com>,
lifeng1519@gmail.com, dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] librte_eal: add APIs to speedup virt2iova/phys
Date: Mon, 20 Apr 2020 16:07:05 +0300 [thread overview]
Message-ID: <20200420160705.1652aeae@Sovereign> (raw)
In-Reply-To: <bc7ce6c4-e545-2f2b-a1cb-34a56d66b4b7@intel.com>
> On 20-Apr-20 12:09 PM, Li Feng wrote:
> > Using pread to replace lseek + read.
> > And add new APIs to reduce open/close/lseek system call frequency when the
> > user needs to convert a large range of virtual address space.
> > - rte_mem_virt2iova_with_fd
> > - rte_mem_virt2phy_with_fd
> >
> > Currently it will be used by spdk in spdk_mem_register.
> >
> > Signed-off-by: Li Feng <fengli@smartx.com>
> > ---
>
> These API's are IMO already on the verge of what's acceptable because of
> the differences between PA, DPDK IOVA and external memory IOVA. I'm not
> sure building on top of them is a good idea. It's also quite platform
> specific - rte_mem_virt2phy could potentially work with Windows (and in
> fact there was an RFC for it), but would this API work with Windows,
> given that Windows doesn't have fd's? Should we perhaps replace fd's
> with an opaque structure pointer, so that each platform-specific
> implementation could dereference it the way it needs to, without
> exposing internal details of the platform?
These new APIs are, in fact, Linux-specific. Doubtfully will Windows ever
benefit from it even with fd abstracted, though I can't say for FreeBSD. Given
the linked suggestion to move rte_vfio_container_dma_map/unmap to some
include/linux header, maybe these APIs could land there too?
http://mails.dpdk.org/archives/dev/2020-April/164404.html
--
Dmitry Kozlyuk
next prev parent reply other threads:[~2020-04-20 13:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-20 11:09 [dpdk-dev] [PATCH] librte_eal: add APIs to speedup virt2iova/phys Li Feng
2020-04-20 12:16 ` Burakov, Anatoly
2020-04-20 13:07 ` Dmitry Kozlyuk [this message]
2020-04-20 14:13 ` Li Feng
2021-03-25 13:32 ` David Marchand
2021-03-29 6:26 ` Li Feng
2021-04-01 10:38 ` Burakov, Anatoly
2021-04-06 10:40 ` Feng Li
2021-04-06 11:23 ` David Marchand
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=20200420160705.1652aeae@Sovereign \
--to=dmitry.kozliuk@gmail.com \
--cc=anatoly.burakov@intel.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=fengli@smartx.com \
--cc=lifeng1519@gmail.com \
/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.