iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
From: Don Dutile <ddutile-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Konrad Rzeszutek Wilk
	<konrad.wilk-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
Cc: Yoder Stuart-B08248
	<B08248-KZfg59tc24xl57MIdRCFDg@public.gmane.org>,
	"iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org"
	<iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
Subject: Re: RFC: vfio / iommu driver for hardware with no iommu
Date: Tue, 30 Apr 2013 16:48:25 -0400	[thread overview]
Message-ID: <51802E19.9050601@redhat.com> (raw)
In-Reply-To: <20130430191131.GC24298-6K5HmflnPlqSPmnEAIUT9EEOCMrvLtNR@public.gmane.org>

On 04/30/2013 03:11 PM, Konrad Rzeszutek Wilk wrote:
>>>> Does vfio work with swiotlb and if not, can/should swiotlb be
>>>> extended? Or does the time and space overhead make it a moot point?
>>>
>>> It does not work with SWIOTLB as it uses the DMA API, not the IOMMU API.
>>>
>> I think you got it reversed.  vfio uses iommu api, not dma api.
>
> Right.  That is what I was saying :-) SWIOTLB uses the DMA API, not
> the IOMMU API. Hence it won't work with VFIO. Unless SWIOTLB implements
> the IOMMU API.
>

>
>> if vfio used dma api, swiotlb is configured as the default dma-ops interface
>> and it could work (with more interfaces... domain-alloc, etc.).
>
> <nods>
>>
>>> It could be extended to use it. I was toying with this b/c for Xen to
>>> use VFIO I would have to implement an Xen IOMMU driver that would basically
>>> piggyback on the SWIOTLB (as Xen itself does the IOMMU parts and takes
>>> care of all the hard work of securing each guest).
>>>
>>> But your requirement would be the same, so it might as well be an generic
>>> driver called SWIOTLB-IOMMU driver.
>>>
>>> If you are up for writting I am up for reviewing/Ack-ing/etc.
>>>
>>> The complexity would be to figure out the VFIO group thing and how to assign
>>> PCI B:D:F devices to the SWIOTLB-IOMMU driver. Perhaps the same way as
>>> xen-pciback does (or pcistub). That is by writting the BDF in the "bind"
>>> attribute in SysFS (or via a kernel parameter).
>>>
>>
>> Did uio provide this un-secure support, and just needs some attention upstream?
>
> I don't recall how UIO did it. Not sure if it even had the group
> support.
no group support. probably doesn't have an iommu-like api either...

sounds like a no-iommu iommu interface is needed! :-p
(Alex: that slipped out! sorry!)

  parent reply	other threads:[~2013-04-30 20:48 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-23 16:13 RFC: vfio / iommu driver for hardware with no iommu Yoder Stuart-B08248
     [not found] ` <9F6FE96B71CF29479FF1CDC8046E15035BE0A3-TcFNo7jSaXPiTqIcKZ1S2K4g8xLGJsHaLnY5E4hWTkheoWH0uzbU5w@public.gmane.org>
2013-04-23 16:56   ` Alex Williamson
     [not found]     ` <1366736189.2918.573.camel-xdHQ/5r00wBBDLzU/O5InQ@public.gmane.org>
2013-04-23 18:36       ` Sethi Varun-B16395
2013-04-23 19:16       ` Yoder Stuart-B08248
     [not found]         ` <9F6FE96B71CF29479FF1CDC8046E15035BE2BD-TcFNo7jSaXPiTqIcKZ1S2K4g8xLGJsHaLnY5E4hWTkheoWH0uzbU5w@public.gmane.org>
2013-04-23 19:47           ` Alex Williamson
     [not found]             ` <1366746427.2918.650.camel-xdHQ/5r00wBBDLzU/O5InQ@public.gmane.org>
2013-04-24 19:41               ` Don Dutile
     [not found]                 ` <51783553.80202-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-04-25  2:49                   ` Sethi Varun-B16395
     [not found]                     ` <C5ECD7A89D1DC44195F34B25E172658D4BA91B-RL0Hj/+nBVCMXPU/2EZmt64g8xLGJsHaLnY5E4hWTkheoWH0uzbU5w@public.gmane.org>
2013-04-25 22:23                       ` Don Dutile
     [not found]                         ` <5179ACE8.2030506-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-04-27  4:22                           ` Andrew Cooks
2013-04-30 17:28                             ` Konrad Rzeszutek Wilk
     [not found]                               ` <20130430172849.GB22752-6K5HmflnPlqSPmnEAIUT9EEOCMrvLtNR@public.gmane.org>
2013-04-30 17:54                                 ` Alex Williamson
2013-04-30 18:13                                 ` Don Dutile
     [not found]                                   ` <518009D3.2050304-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-04-30 19:11                                     ` Konrad Rzeszutek Wilk
     [not found]                                       ` <20130430191131.GC24298-6K5HmflnPlqSPmnEAIUT9EEOCMrvLtNR@public.gmane.org>
2013-04-30 20:48                                         ` Don Dutile [this message]
     [not found]                                           ` <51802E19.9050601-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-04-30 21:15                                             ` Alex Williamson
     [not found]                                               ` <1367356521.22436.7.camel-85EaTFmN5p//9pzu0YdTqQ@public.gmane.org>
2013-04-30 21:51                                                 ` Don Dutile
2013-04-30 18:25                                 ` Don Dutile
2013-04-24 10:57   ` Joerg Roedel
     [not found]     ` <20130424105718.GJ17148-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2013-04-24 11:04       ` Bhushan Bharat-R65777
     [not found]         ` <6A3DF150A5B70D4F9B66A25E3F7C888D06FF5799-RL0Hj/+nBVCMXPU/2EZmt64g8xLGJsHaLnY5E4hWTkheoWH0uzbU5w@public.gmane.org>
2013-04-24 15:22           ` Yoder Stuart-B08248
2013-04-24 11:52       ` Sethi Varun-B16395

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=51802E19.9050601@redhat.com \
    --to=ddutile-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=B08248-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
    --cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=konrad.wilk-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.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;
as well as URLs for NNTP newsgroup(s).