patches.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
To: Jason Gunthorpe <jgg@nvidia.com>,
	Alex Williamson <alex.williamson@redhat.com>,
	iommu@lists.linux.dev, kvm@vger.kernel.org
Cc: patches@lists.linux.dev
Subject: Re: [PATCH v2] vfio/type1: Remove Fine Grained Superpages detection
Date: Tue, 15 Apr 2025 22:25:17 -0400	[thread overview]
Message-ID: <4841de65-2843-41e9-8153-bda1f626013e@oracle.com> (raw)
In-Reply-To: <0-v2-97fa1da8d983+412-vfio_fgsp_jgg@nvidia.com>



On 4/14/25 9:46 AM, Jason Gunthorpe wrote:
> VFIO is looking to enable an optimization where it can rely on a fast
> unmap operation that returned the size of a larger IOPTE.
> 
> Due to how the test was constructed this would only ever succeed on the
> AMDv1 page table that supported an 8k contiguous size. Nothing else
> supports this.
> 
> Alex says the performance win was fairly minor, so lets remove this
> code. Always use iommu_iova_to_phys() to extent contiguous pages.
> 
> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>

Reviewed-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>

Verified on AMD Zen4 host, basic sanity test booting KVM guest with 16 VFs.

Tested-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>

  parent reply	other threads:[~2025-04-16  2:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-14 13:46 [PATCH v2] vfio/type1: Remove Fine Grained Superpages detection Jason Gunthorpe
2025-04-15  7:41 ` Tian, Kevin
2025-04-16  2:25 ` Alejandro Jimenez [this message]
2025-05-20 15:39 ` Alex Williamson

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=4841de65-2843-41e9-8153-bda1f626013e@oracle.com \
    --to=alejandro.j.jimenez@oracle.com \
    --cc=alex.williamson@redhat.com \
    --cc=iommu@lists.linux.dev \
    --cc=jgg@nvidia.com \
    --cc=kvm@vger.kernel.org \
    --cc=patches@lists.linux.dev \
    /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).