[vfio-users] IOMMU page table of QEMU vfio device passthrough

2018-06-05 Thread Huaicheng Li
Hi, I assigned a PCIe device to my QEMU VM and learnt that in this case, IOMMU maintains GPA->HPA translation. What I want to achieve is to pass commands with host physical addresses to the device from inside the VM and see if the DMA will successfully do that for me. (1). How does VFIO setup the

Re: [vfio-users] IOMMU page table of QEMU vfio device passthrough

2018-06-05 Thread Huaicheng Li
est, Huaicheng On Tue, Jun 5, 2018 at 5:25 PM Alex Williamson wrote: > On Tue, 5 Jun 2018 15:16:55 -0700 > Huaicheng Li wrote: > > > Hi, > > > > I assigned a PCIe device to my QEMU VM and learnt that in this case, > IOMMU > > maintains GPA->HPA translation. Wh

Re: [vfio-users] IOMMU page table of QEMU vfio device passthrough

2018-06-05 Thread Huaicheng Li
Again, thank you! Best, Huaicheng On Tue, Jun 5, 2018 at 9:59 PM Alex Williamson wrote: > On Tue, 5 Jun 2018 18:52:43 -0700 > Huaicheng Li wrote: > > > Hi Alex, > > > > VFIO does not setup > > > mappings per DMA buffer, it maps all of guest physical memory