Re: [Qemu-devel] [PATCH 3/8] vfio: Introduce VFIO address spaces

2013-08-19 Thread Paolo Bonzini
Il 13/08/2013 00:07, Alex Williamson ha scritto: >> > +if (pci_iommu_as(pdev) != &address_space_memory) { >> > +error_report("vfio: DMA address space must be system memory"); >> > +return -ENXIO; > -EFAULT? It's a bad address of sorts. > Accessing it would SIGSEGV, so it is n

Re: [Qemu-devel] [PATCH 3/8] vfio: Introduce VFIO address spaces

2013-08-12 Thread Alex Williamson
On Wed, 2013-08-07 at 18:21 +1000, Alexey Kardashevskiy wrote: > From: David Gibson > > The only model so far supported for VFIO passthrough devices is the model > usually used on x86, where all of the guest's RAM is mapped into the > (host) IOMMU and there is no IOMMU visible in the guest. > >

[Qemu-devel] [PATCH 3/8] vfio: Introduce VFIO address spaces

2013-08-07 Thread Alexey Kardashevskiy
From: David Gibson The only model so far supported for VFIO passthrough devices is the model usually used on x86, where all of the guest's RAM is mapped into the (host) IOMMU and there is no IOMMU visible in the guest. This patch begins to relax this model, introducing the notion of a VFIOAddres