Re: [Xen-devel] [driver question] IOMMU concept in Xen

2016-10-11 Thread Jan Beulich
>>> Maciek 10/10/16 10:17 PM >>> First of all - please don't top post. >In driver initialization we can call sriov_configure to turn on SRIOV >and enable VFs. >To be able to run on VM using VF we need IOMMU enabled (currently we >recommend our >customers to add parameter to kernel intel_iommu=

Re: [Xen-devel] [driver question] IOMMU concept in Xen

2016-10-10 Thread Maciek
Yes you are right, I was too focused on my issue that I didn't specify what I am trying to achieve :) My company current driver can work as normal PF pci device, and also we support SR-IOV. In driver initialization we can call sriov_configure to turn on SRIOV and enable VFs. To be able to run

Re: [Xen-devel] [driver question] IOMMU concept in Xen

2016-10-10 Thread Jan Beulich
>>> On 10.10.16 at 02:19, wrote: > During development of linux kernel PCI driver with SR-IOV I meet some > difficulty and I wanted to make sure that I understand correctly Xen > concepts. > > Things that confuse me is build in function: iommu_present. Is usually > used in driver that are using

[Xen-devel] [driver question] IOMMU concept in Xen

2016-10-09 Thread Maciek
Hi all, During development of linux kernel PCI driver with SR-IOV I meet some difficulty and I wanted to make sure that I understand correctly Xen concepts. Things that confuse me is build in function: iommu_present. Is usually used in driver that are using iommu to work. My problem is that