Re: [Qemu-devel] [RFC v4 08/27] hw/vfio/common: Force nested if iommu requires it

2019-05-28 Thread Auger Eric
Hi Peter, On 5/28/19 4:47 AM, Peter Xu wrote: > On Mon, May 27, 2019 at 01:41:44PM +0200, Eric Auger wrote: >> In case we detect the address space is translated by >> a virtual IOMMU which requires nested stages, let's set up >> the container with the VFIO_TYPE1_NESTING_IOMMU iommu_type. >> >> Sig

Re: [Qemu-devel] [RFC v4 08/27] hw/vfio/common: Force nested if iommu requires it

2019-05-27 Thread Peter Xu
On Mon, May 27, 2019 at 01:41:44PM +0200, Eric Auger wrote: > In case we detect the address space is translated by > a virtual IOMMU which requires nested stages, let's set up > the container with the VFIO_TYPE1_NESTING_IOMMU iommu_type. > > Signed-off-by: Eric Auger > > --- > > v2 -> v3: > - a

[Qemu-devel] [RFC v4 08/27] hw/vfio/common: Force nested if iommu requires it

2019-05-27 Thread Eric Auger
In case we detect the address space is translated by a virtual IOMMU which requires nested stages, let's set up the container with the VFIO_TYPE1_NESTING_IOMMU iommu_type. Signed-off-by: Eric Auger --- v2 -> v3: - add "nested only is selected if requested by @force_nested" comment in this pat