Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1316141

Re: [PATCH] vfio/noiommu: Don't use iommu_present() to track fake groups

From Alexey Kardashevskiy <aik@ozlabs.ru>
Newsgroups linux.kernel
Subject Re: [PATCH] vfio/noiommu: Don't use iommu_present() to track fake groups
Date 2016-01-25 01:30 +0100
Message-ID <qUDcC-4cj-7@gated-at.bofh.it> (permalink)
References <qTNH5-7bM-29@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 01/23/2016 04:23 AM, Alex Williamson wrote:
> Using iommu_present() to determine whether an IOMMU group is real or
> fake has some problems.  First, apparently Power systems don't
> register an IOMMU on the device bus, so the groups and containers get
> marked as noiommu and then won't bind to their actual IOMMU driver.
> Second, I expect we'll run into the same issue as we try to support
> vGPUs through vfio, since they're likely to emulate this behavior of
> creating an IOMMU group on a virtual device and then providing a vfio
> IOMMU backend tailored to the sort of isolation they provide, which
> won't necessarily be fully compatible with the IOMMU API.
>
> The solution here is to use the existing iommudata interface to IOMMU
> groups, which allows us to easily identify the fake groups we've
> created for noiommu purposes.  The iommudata we set is purely
> arbitrary since we're only comparing the address, so we use the
> address of the noiommu switch itself.
>
> Reported-by: Alexey Kardashevskiy <aik@ozlabs.ru>
> Fixes: 03a76b60f8ba ("vfio: Include No-IOMMU mode")
> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>



Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Tested-by: Alexey Kardashevskiy <aik@ozlabs.ru>

Thanks!


-- 
Alexey

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] vfio/noiommu: Don't use iommu_present() to track fake groups Alex Williamson <alex.williamson@redhat.com> - 2016-01-22 18:30 +0100
  Re: [PATCH] vfio/noiommu: Don't use iommu_present() to track fake  groups Alexey Kardashevskiy <aik@ozlabs.ru> - 2016-01-25 01:30 +0100

csiph-web