Re: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-27 Thread Alex Williamson
dhat.com] > >>> Sent: Saturday, January 18, 2014 2:06 AM > >>> To: Sethi Varun-B16395 > >>> Cc: io...@lists.linux-foundation.org; linux-kernel@vger.kernel.org > >>> Subject: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support > >>>

Re: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-27 Thread Don Dutile
-kernel@vger.kernel.org Subject: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support RFC: This is not complete but I want to share with Varun the dirrection I'm thinking about. In particular, I'm really not sure if we want to introduce a "v2" interface version with slightly diffe

RE: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-27 Thread Varun Sethi
t;> To: Sethi Varun-B16395 > >> Cc: io...@lists.linux-foundation.org; linux-kernel@vger.kernel.org > >> Subject: Re: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support > >> > >> On Mon, 2014-01-20 at 14:45 +, Varun Sethi wrote: > >> > > >

RE: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-27 Thread Varun Sethi
@vger.kernel.org Subject: Re: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support On Mon, 2014-01-20 at 14:45 +, Varun Sethi wrote: -Original Message- From: Alex Williamson [mailto:alex.william...@redhat.com] Sent: Saturday, January 18, 2014 2:06 AM To: Sethi

Re: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-27 Thread Don Dutile
-kernel@vger.kernel.org Subject: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support RFC: This is not complete but I want to share with Varun the dirrection I'm thinking about. In particular, I'm really not sure if we want to introduce a v2 interface version with slightly different unmap

Re: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-27 Thread Alex Williamson
To: Sethi Varun-B16395 Cc: io...@lists.linux-foundation.org; linux-kernel@vger.kernel.org Subject: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support RFC: This is not complete but I want to share with Varun the dirrection I'm thinking about. In particular, I'm really not sure if we want

Re: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-26 Thread Kai Huang
ux-kernel@vger.kernel.org >> Subject: Re: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support >> >> On Mon, 2014-01-20 at 14:45 +, Varun Sethi wrote: >> > >> > > -Original Message- >> > > From: Alex Williamson [mailto:alex.willia

Re: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-26 Thread Kai Huang
Subject: Re: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support On Mon, 2014-01-20 at 14:45 +, Varun Sethi wrote: -Original Message- From: Alex Williamson [mailto:alex.william...@redhat.com] Sent: Saturday, January 18, 2014 2:06 AM To: Sethi Varun-B16395 Cc: io

RE: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-21 Thread bharat.bhus...@freescale.com
> -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Tuesday, January 21, 2014 7:06 PM > To: Bhushan Bharat-R65777 > Cc: Sethi Varun-B16395; io...@lists.linux-foundation.org; linux- > ker...@vger.kernel.org > Subject: Re: [RFC PA

Re: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-21 Thread Alex Williamson
On Tue, 2014-01-21 at 07:27 +, bharat.bhus...@freescale.com wrote: > > + domain->domain = iommu_domain_alloc(domain->bus); > > + if (!domain->domain) { > > + ret = -EIO; > > + goto out_free; > > + } > > + > > + ret = iommu_attach_group(domain->domain, iommu_group);

Re: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-21 Thread Alex Williamson
On Tue, 2014-01-21 at 07:27 +, bharat.bhus...@freescale.com wrote: + domain-domain = iommu_domain_alloc(domain-bus); + if (!domain-domain) { + ret = -EIO; + goto out_free; + } + + ret = iommu_attach_group(domain-domain, iommu_group); + if (ret) +

RE: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-21 Thread bharat.bhus...@freescale.com
-Original Message- From: Alex Williamson [mailto:alex.william...@redhat.com] Sent: Tuesday, January 21, 2014 7:06 PM To: Bhushan Bharat-R65777 Cc: Sethi Varun-B16395; io...@lists.linux-foundation.org; linux- ker...@vger.kernel.org Subject: Re: [RFC PATCH] vfio/iommu_type1: Multi

RE: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-20 Thread bharat.bhus...@freescale.com
el@vger.kernel.org > Subject: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support > > RFC: This is not complete but I want to share with Varun the > dirrection I'm thinking about. In particular, I'm really not > sure if we want to introduce a "v2" interface versio

Re: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-20 Thread Alex Williamson
org; linux-kernel@vger.kernel.org > > Subject: Re: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support > > > > On Mon, 2014-01-20 at 14:45 +, Varun Sethi wrote: > > > > > > > -Original Message- > > > > From: Alex Williamson

RE: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-20 Thread Varun Sethi
> -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Monday, January 20, 2014 9:51 PM > To: Sethi Varun-B16395 > Cc: io...@lists.linux-foundation.org; linux-kernel@vger.kernel.org > Subject: Re: [RFC PATCH] vfio/iommu_type1: Multi-IO

Re: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-20 Thread Alex Williamson
org; linux-kernel@vger.kernel.org > > Subject: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support > > > > RFC: This is not complete but I want to share with Varun the dirrection > > I'm thinking about. In particular, I'm really not sure if we want to > > i

RE: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-20 Thread Varun Sethi
> -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Saturday, January 18, 2014 2:06 AM > To: Sethi Varun-B16395 > Cc: io...@lists.linux-foundation.org; linux-kernel@vger.kernel.org > Subject: [RFC PATCH] vfio/iommu_type1: Multi-IO

RE: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-20 Thread Varun Sethi
-Original Message- From: Alex Williamson [mailto:alex.william...@redhat.com] Sent: Saturday, January 18, 2014 2:06 AM To: Sethi Varun-B16395 Cc: io...@lists.linux-foundation.org; linux-kernel@vger.kernel.org Subject: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support RFC

Re: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-20 Thread Alex Williamson
PATCH] vfio/iommu_type1: Multi-IOMMU domain support RFC: This is not complete but I want to share with Varun the dirrection I'm thinking about. In particular, I'm really not sure if we want to introduce a v2 interface version with slightly different unmap semantics. QEMU doesn't care

RE: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-20 Thread Varun Sethi
-Original Message- From: Alex Williamson [mailto:alex.william...@redhat.com] Sent: Monday, January 20, 2014 9:51 PM To: Sethi Varun-B16395 Cc: io...@lists.linux-foundation.org; linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

Re: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-20 Thread Alex Williamson
: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support On Mon, 2014-01-20 at 14:45 +, Varun Sethi wrote: -Original Message- From: Alex Williamson [mailto:alex.william...@redhat.com] Sent: Saturday, January 18, 2014 2:06 AM To: Sethi Varun-B16395 Cc: io

RE: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-20 Thread bharat.bhus...@freescale.com
Subject: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support RFC: This is not complete but I want to share with Varun the dirrection I'm thinking about. In particular, I'm really not sure if we want to introduce a v2 interface version with slightly different unmap semantics. QEMU doesn't

[RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-17 Thread Alex Williamson
RFC: This is not complete but I want to share with Varun the dirrection I'm thinking about. In particular, I'm really not sure if we want to introduce a "v2" interface version with slightly different unmap semantics. QEMU doesn't care about the difference, but other users might. Be warned, I'm

[RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-17 Thread Alex Williamson
RFC: This is not complete but I want to share with Varun the dirrection I'm thinking about. In particular, I'm really not sure if we want to introduce a v2 interface version with slightly different unmap semantics. QEMU doesn't care about the difference, but other users might. Be warned, I'm