From: Auger Eric <eric.auger@redhat.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: alex.williamson@redhat.com, jean-philippe.brucker@arm.com,
dwmw2@infradead.org, will.deacon@arm.com,
linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org,
robin.murphy@arm.com, eric.auger.pro@gmail.com
Subject: Re: [RFC 2/3] iommu: Account for dma_mask and iommu aperture in IOVA reserved regions
Date: Tue, 29 Sep 2020 09:20:36 +0200 [thread overview]
Message-ID: <35b5ff6b-1c6a-ced0-aeb0-6135b9fa26d5@redhat.com> (raw)
In-Reply-To: <20200929060307.GA6564@infradead.org>
Hi Christoph,
On 9/29/20 8:03 AM, Christoph Hellwig wrote:
> On Mon, Sep 28, 2020 at 09:50:36PM +0200, Eric Auger wrote:
>> VFIO currently exposes the usable IOVA regions through the
>> VFIO_IOMMU_GET_INFO ioctl. However it fails to take into account
>> the dma_mask of the devices within the container. The top limit
>> currently is defined by the iommu aperture.
>
> Can we take a step back here? The dma_mask only has a meaning for
> the DMA API, and not the iommu API, it should have no relevance here.
>
> More importantly if we are using vfio no dma_mask should be set to
> start with.
You will find more context in my reply to Alex.
Thanks
Eric
>
>> + if (geo.aperture_end < ULLONG_MAX && geo.aperture_end != geo.aperture_start) {
>
> Please avoid pointlessly overlong lines.
>
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
next prev parent reply other threads:[~2020-09-29 7:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-28 19:50 [RFC 0/3] iommu: Reserved regions for IOVAs beyond dma_mask and iommu aperture Eric Auger
2020-09-28 19:50 ` [RFC 1/3] iommu: Fix merging in iommu_insert_resv_region Eric Auger
2020-09-28 19:50 ` [RFC 2/3] iommu: Account for dma_mask and iommu aperture in IOVA reserved regions Eric Auger
2020-09-29 6:03 ` Christoph Hellwig
2020-09-29 7:20 ` Auger Eric [this message]
2020-09-28 19:50 ` [RFC 3/3] vfio/type1: Increase the version of VFIO_IOMMU_TYPE1_INFO_CAP_IOVA_RANGE Eric Auger
2020-09-28 22:42 ` [RFC 0/3] iommu: Reserved regions for IOVAs beyond dma_mask and iommu aperture Alex Williamson
2020-09-29 7:18 ` Auger Eric
2020-09-29 18:18 ` Alex Williamson
2020-09-30 9:59 ` Auger Eric
2020-10-05 10:44 ` Lorenzo Pieralisi
2020-10-05 13:08 ` Christoph Hellwig
2020-10-06 15:41 ` Auger Eric
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=35b5ff6b-1c6a-ced0-aeb0-6135b9fa26d5@redhat.com \
--to=eric.auger@redhat.com \
--cc=alex.williamson@redhat.com \
--cc=dwmw2@infradead.org \
--cc=eric.auger.pro@gmail.com \
--cc=hch@infradead.org \
--cc=iommu@lists.linux-foundation.org \
--cc=jean-philippe.brucker@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=robin.murphy@arm.com \
--cc=will.deacon@arm.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;
as well as URLs for NNTP newsgroup(s).