Re: RFC: vfio / iommu driver for hardware with no iommu

2013-04-30 Thread Don Dutile
On 04/30/2013 05:15 PM, Alex Williamson wrote: On Tue, 2013-04-30 at 16:48 -0400, Don Dutile wrote: 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 no

Re: RFC: vfio / iommu driver for hardware with no iommu

2013-04-30 Thread Alex Williamson
On Tue, 2013-04-30 at 16:48 -0400, Don Dutile wrote: > 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

Re: RFC: vfio / iommu driver for hardware with no iommu

2013-04-30 Thread Don Dutile
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 us

Re: RFC: vfio / iommu driver for hardware with no iommu

2013-04-30 Thread Konrad Rzeszutek Wilk
> >>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. Th

Re: RFC: vfio / iommu driver for hardware with no iommu

2013-04-30 Thread Don Dutile
-foundation.org [mailto:iommu- boun...@lists.linux-foundation.org] On Behalf Of Don Dutile Sent: Thursday, April 25, 2013 1:11 AM To: Alex Williamson Cc: Yoder Stuart-B08248; iommu@lists.linux-foundation.org Subject: Re: RFC: vfio / iommu driver for hardware with no iommu On 04/23/2013 03:47 PM, Alex Williamson

Re: RFC: vfio / iommu driver for hardware with no iommu

2013-04-30 Thread Don Dutile
-foundation.org [mailto:iommu- boun...@lists.linux-foundation.org] On Behalf Of Don Dutile Sent: Thursday, April 25, 2013 1:11 AM To: Alex Williamson Cc: Yoder Stuart-B08248; iommu@lists.linux-foundation.org Subject: Re: RFC: vfio / iommu driver for hardware with no iommu On 04/23/2013 03:47 PM, Alex Williamson

Re: RFC: vfio / iommu driver for hardware with no iommu

2013-04-30 Thread Alex Williamson
> > >>> To: Alex Williamson > > >>> Cc: Yoder Stuart-B08248; iommu@lists.linux-foundation.org > > >>> Subject: Re: RFC: vfio / iommu driver for hardware with no iommu > > >>> > > >>> On 04/23/2013 03:47 PM, Alex

Re: RFC: vfio / iommu driver for hardware with no iommu

2013-04-30 Thread Konrad Rzeszutek Wilk
boun...@lists.linux-foundation.org [mailto:iommu- > >>> boun...@lists.linux-foundation.org] On Behalf Of Don Dutile > >>> Sent: Thursday, April 25, 2013 1:11 AM > >>> To: Alex Williamson > >>> Cc: Yoder Stuart-B08248; iommu@lists.linux-foundation.org >

Re: RFC: vfio / iommu driver for hardware with no iommu

2013-04-26 Thread Andrew Cooks
.org] On Behalf Of Don Dutile >>> Sent: Thursday, April 25, 2013 1:11 AM >>> To: Alex Williamson >>> Cc: Yoder Stuart-B08248; iommu@lists.linux-foundation.org >>> Subject: Re: RFC: vfio / iommu driver for hardware with no iommu >>> >>> On 04/23/2013 0

Re: RFC: vfio / iommu driver for hardware with no iommu

2013-04-25 Thread Don Dutile
@lists.linux-foundation.org Subject: Re: RFC: vfio / iommu driver for hardware with no iommu On 04/23/2013 03:47 PM, Alex Williamson wrote: On Tue, 2013-04-23 at 19:16 +, Yoder Stuart-B08248 wrote: -Original Message- From: Alex Williamson [mailto:alex.william...@redhat.com] Sent: Tuesday

RE: RFC: vfio / iommu driver for hardware with no iommu

2013-04-24 Thread Sethi Varun-B16395
[mailto:alex.william...@redhat.com] > >>> Sent: Tuesday, April 23, 2013 11:56 AM > >>> To: Yoder Stuart-B08248 > >>> Cc: Joerg Roedel; iommu@lists.linux-foundation.org > >>> Subject: Re: RFC: vfio / iommu driver for hardware with no iommu > >

Re: RFC: vfio / iommu driver for hardware with no iommu

2013-04-24 Thread Don Dutile
-foundation.org Subject: Re: RFC: vfio / iommu driver for hardware with no iommu On Tue, 2013-04-23 at 16:13 +, Yoder Stuart-B08248 wrote: Joerg/Alex, We have embedded systems where we use QEMU/KVM and have the requirement to do device assignment, but have no iommu. So we would like to get

RE: RFC: vfio / iommu driver for hardware with no iommu

2013-04-24 Thread Yoder Stuart-B08248
> -Original Message- > From: Bhushan Bharat-R65777 > Sent: Wednesday, April 24, 2013 6:04 AM > To: Joerg Roedel; Yoder Stuart-B08248 > Cc: iommu@lists.linux-foundation.org > Subject: RE: RFC: vfio / iommu driver for hardware with no iommu > > > > > --

RE: RFC: vfio / iommu driver for hardware with no iommu

2013-04-24 Thread Sethi Varun-B16395
Re: RFC: vfio / iommu driver for hardware with no iommu > > On Tue, Apr 23, 2013 at 04:13:00PM +, Yoder Stuart-B08248 wrote: > > We're aware of the obvious limitations-- no protection, DMA'able > > memory must be physically contiguous and will have no iova->phy

RE: RFC: vfio / iommu driver for hardware with no iommu

2013-04-24 Thread Bhushan Bharat-R65777
Re: RFC: vfio / iommu driver for hardware with no iommu > > On Tue, Apr 23, 2013 at 04:13:00PM +, Yoder Stuart-B08248 wrote: > > We're aware of the obvious limitations-- no protection, DMA'able > > memory must be physically contiguous and will have no iova->phy

Re: RFC: vfio / iommu driver for hardware with no iommu

2013-04-24 Thread Joerg Roedel
On Tue, Apr 23, 2013 at 04:13:00PM +, Yoder Stuart-B08248 wrote: > We're aware of the obvious limitations-- no protection, > DMA'able memory must be physically contiguous and will > have no iova->phy translation. But there are use cases > where all OSes involved are trusted and customers can >

Re: RFC: vfio / iommu driver for hardware with no iommu

2013-04-23 Thread Alex Williamson
.linux-foundation.org > > Subject: Re: RFC: vfio / iommu driver for hardware with no iommu > > > > On Tue, 2013-04-23 at 16:13 +, Yoder Stuart-B08248 wrote: > > > Joerg/Alex, > > > > > > We have embedded systems where we use QEMU/KVM and have > &

RE: RFC: vfio / iommu driver for hardware with no iommu

2013-04-23 Thread Yoder Stuart-B08248
> -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Tuesday, April 23, 2013 11:56 AM > To: Yoder Stuart-B08248 > Cc: Joerg Roedel; iommu@lists.linux-foundation.org > Subject: Re: RFC: vfio / iommu driver for hardware with no iommu &g

RE: RFC: vfio / iommu driver for hardware with no iommu

2013-04-23 Thread Sethi Varun-B16395
ubject: Re: RFC: vfio / iommu driver for hardware with no iommu > > On Tue, 2013-04-23 at 16:13 +, Yoder Stuart-B08248 wrote: > > Joerg/Alex, > > > > We have embedded systems where we use QEMU/KVM and have the > > requirement to do device assignment, but have no iomm

Re: RFC: vfio / iommu driver for hardware with no iommu

2013-04-23 Thread Alex Williamson
On Tue, 2013-04-23 at 16:13 +, Yoder Stuart-B08248 wrote: > Joerg/Alex, > > We have embedded systems where we use QEMU/KVM and have > the requirement to do device assignment, but have no > iommu. So we would like to get vfio-pci working on > systems like this. > > We're aware of the obvious

RFC: vfio / iommu driver for hardware with no iommu

2013-04-23 Thread Yoder Stuart-B08248
Joerg/Alex, We have embedded systems where we use QEMU/KVM and have the requirement to do device assignment, but have no iommu. So we would like to get vfio-pci working on systems like this. We're aware of the obvious limitations-- no protection, DMA'able memory must be physically contiguous and