From: Alex Williamson <alex.williamson@redhat.com>
To: "xuxiaoyang (C)" <xuxiaoyang2@huawei.com>
Cc: <linux-kernel@vger.kernel.org>, <kvm@vger.kernel.org>,
<kwankhede@nvidia.com>, <wu.wubin@huawei.com>,
<maoming.maoming@huawei.com>, <xieyingtai@huawei.com>,
<lizhengui@huawei.com>, <wubinfeng@huawei.com>
Subject: Re: [PATCH] vfio iommu type1: Improve vfio_iommu_type1_pin_pages performance
Date: Wed, 11 Nov 2020 08:56:39 -0700 [thread overview]
Message-ID: <20201111085639.7235fb42@w520.home> (raw)
In-Reply-To: <2553f102-de17-b23b-4cd8-fefaf2a04f24@huawei.com>
On Tue, 10 Nov 2020 21:42:33 +0800
"xuxiaoyang (C)" <xuxiaoyang2@huawei.com> wrote:
> vfio_iommu_type1_pin_pages is very inefficient because
> it is processed page by page when calling vfio_pin_page_external.
> Added contiguous_vaddr_get_pfn to process continuous pages
> to reduce the number of loops, thereby improving performance.
vfio_pin_pages() accepts an array of unrelated iova pfns and processes
each to return the physical pfn. AFAICT this proposal makes an
unfounded and unverified assumption that the caller is asking for a
range of contiguous iova pfns. That's not the semantics of the call.
This is wrong. Thanks,
Alex
next prev parent reply other threads:[~2020-11-11 15:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-10 13:42 xuxiaoyang (C)
2020-11-11 15:56 ` Alex Williamson [this message]
2020-11-12 11:49 ` xuxiaoyang (C)
2020-11-13 16:44 ` Alex Williamson
2020-11-16 13:47 ` xuxiaoyang (C)
2020-11-16 16:33 ` Alex Williamson
2020-11-17 3:31 ` xuxiaoyang (C)
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=20201111085639.7235fb42@w520.home \
--to=alex.williamson@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=kwankhede@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lizhengui@huawei.com \
--cc=maoming.maoming@huawei.com \
--cc=wu.wubin@huawei.com \
--cc=wubinfeng@huawei.com \
--cc=xieyingtai@huawei.com \
--cc=xuxiaoyang2@huawei.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®