From: David Matlack <dmatlack@google.com>
To: Aaron Lewis <aaronlewis@google.com>
Cc: kvm@vger.kernel.org, alex@shazbot.org, jgg@nvidia.com
Subject: Re: [PATCH 0/4] Introduce vfio_dma_mapping_perf_test
Date: Tue, 14 Jul 2026 16:27:08 +0000 [thread overview]
Message-ID: <alZjXMjmiwhjVO3G@google.com> (raw)
In-Reply-To: <20260701203311.326798-1-aaronlewis@google.com>
On 2026-07-01 08:33 PM, Aaron Lewis wrote:
> Add a new VFIO selftest, vfio_dma_mapping_perf_test, to provide a
> configurable tool for measuring DMA mapping and unmapping latencies.
>
> This selftest introduces command-line parameters to provide a convenient
> way to tune the test for specific situations. For example, it can be used
> to observe the lengthy unmap times of the Type 1 IOMMU on large memory
> regions, or to compare DMA mapping performance between the Type 1 IOMMU
> and IOMMUFD. These scenarios can now be easily configured and run via the
> command line.
>
> During development, I abandoned an approach where I initialized memfd
> globally in main() for all tests. While that allowed memfd to be
> initialized once for all test variants, it proved awkward because a
> different memfd would be needed for each supported page size (e.g., 4K,
> 2M, 1G). Also, If a user is only running a single test variant,
> pre-allocating all sizes is unnecessary overhead. Therefore, I dropped
> that approach in favor of test-local allocation. However, I'm open to
> ideas on a better way to handle this.
>
> Aaron Lewis (4):
> vfio: selftests: Introduce vfio_dma_mapping_perf_test
> vfio: selftests: Add memfd test to vfio_dma_mapping_perf_test
> vfio: selftests: Allow a size for vfio_dma_mapping_perf_test
> vfio: selftests: Allow the flag MAP_POPULATE to be set on the cmdline
Please respond inline to the Sashiko feedback and address any findings
in v2. I'll be doing a review as well shortly.
prev parent reply other threads:[~2026-07-14 16:27 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-01 20:33 [PATCH 0/4] Introduce vfio_dma_mapping_perf_test Aaron Lewis
2026-07-01 20:33 ` [PATCH 1/4] vfio: selftests: " Aaron Lewis
2026-07-01 20:44 ` sashiko-bot
2026-07-14 16:44 ` David Matlack
2026-07-01 20:33 ` [PATCH 2/4] vfio: selftests: Add memfd test to vfio_dma_mapping_perf_test Aaron Lewis
2026-07-01 20:43 ` sashiko-bot
2026-07-14 16:53 ` David Matlack
2026-07-01 20:33 ` [PATCH 3/4] vfio: selftests: Allow a size for vfio_dma_mapping_perf_test Aaron Lewis
2026-07-01 20:44 ` sashiko-bot
2026-07-14 17:49 ` David Matlack
2026-07-01 20:33 ` [PATCH 4/4] vfio: selftests: Allow the flag MAP_POPULATE to be set on the cmdline Aaron Lewis
2026-07-07 20:30 ` David Matlack
2026-07-07 20:32 ` David Matlack
2026-07-14 16:27 ` David Matlack [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=alZjXMjmiwhjVO3G@google.com \
--to=dmatlack@google.com \
--cc=aaronlewis@google.com \
--cc=alex@shazbot.org \
--cc=jgg@nvidia.com \
--cc=kvm@vger.kernel.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