From: "Burakov, Anatoly" <anatoly.burakov@intel.com>
To: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] mem: check DMA mask for user-supplied IOVA addresses
Date: Tue, 5 May 2020 17:26:09 +0100 [thread overview]
Message-ID: <29aa9918-e7b2-9f22-c577-e6a940fa472a@intel.com> (raw)
In-Reply-To: <e092c8e06b192c629f906ef0ae128f41f62c1028.1588693697.git.anatoly.burakov@intel.com>
On 05-May-20 4:48 PM, Anatoly Burakov wrote:
> Currently, external memory API will silently succeed if the IOVA
> addresses supplied by the user do not fit into the DMA mask. This
> can cause difficult to debug issues or accepting failed kernel
> VFIO DMA mappings.
>
> Fix it so that if the IOVA addresses are provided, they are checked
> to see if they fit into the DMA mask.
>
> Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
> ---
To avoid any misunderstandings, this is only for external memory - we
already do this for internal memory. See the original thread [1] for
context.
Also, needs Fixes: tag and a unit test, so will submit a v2 some time
this week.
[1] http://patches.dpdk.org/patch/69566/
--
Thanks,
Anatoly
prev parent reply other threads:[~2020-05-05 16:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-05 15:48 Anatoly Burakov
2020-05-05 16:26 ` 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=29aa9918-e7b2-9f22-c577-e6a940fa472a@intel.com \
--to=anatoly.burakov@intel.com \
--cc=dev@dpdk.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).