Re: [Xen-devel] [PATCH v1 06/10] iommu: Add extra use_iommu argument to iommu_domain_init()

2017-05-19 Thread Oleksandr Tyshchenko
Hi, Jan On Fri, May 19, 2017 at 9:30 AM, Jan Beulich wrote: On 18.05.17 at 19:41, wrote: >> patch #6: As for the current patch, likely the "init" platform >> callback should be extended with >> extra "use_iommu" argument as well as the "iommu_domain_init" API. In >> that case we >> would ju

Re: [Xen-devel] [PATCH v1 06/10] iommu: Add extra use_iommu argument to iommu_domain_init()

2017-05-18 Thread Jan Beulich
>>> On 18.05.17 at 19:41, wrote: > patch #6: As for the current patch, likely the "init" platform > callback should be extended with > extra "use_iommu" argument as well as the "iommu_domain_init" API. In > that case we > would just pass thought incoming flag to the IOMMU drivers followed by > upd

Re: [Xen-devel] [PATCH v1 06/10] iommu: Add extra use_iommu argument to iommu_domain_init()

2017-05-18 Thread Oleksandr Tyshchenko
Hi, all. On Thu, May 18, 2017 at 11:38 AM, Jan Beulich wrote: On 17.05.17 at 21:52, wrote: >> On 05/12/2017 03:31 PM, Jan Beulich wrote: >> On 10.05.17 at 16:03, wrote: From: Oleksandr Tyshchenko The presence of this flag lets us know that the guest has devices whi

Re: [Xen-devel] [PATCH v1 06/10] iommu: Add extra use_iommu argument to iommu_domain_init()

2017-05-18 Thread Jan Beulich
>>> On 17.05.17 at 21:52, wrote: > On 05/12/2017 03:31 PM, Jan Beulich wrote: > On 10.05.17 at 16:03, wrote: >>> From: Oleksandr Tyshchenko >>> >>> The presence of this flag lets us know that the guest >>> has devices which will most likely be used for passthrough >>> and as the result the u

Re: [Xen-devel] [PATCH v1 06/10] iommu: Add extra use_iommu argument to iommu_domain_init()

2017-05-17 Thread Julien Grall
Hi Jan, On 05/12/2017 03:31 PM, Jan Beulich wrote: On 10.05.17 at 16:03, wrote: From: Oleksandr Tyshchenko The presence of this flag lets us know that the guest has devices which will most likely be used for passthrough and as the result the use of IOMMU is expected for this domain. In that

Re: [Xen-devel] [PATCH v1 06/10] iommu: Add extra use_iommu argument to iommu_domain_init()

2017-05-15 Thread Jan Beulich
>>> On 12.05.17 at 19:00, wrote: > On Fri, May 12, 2017 at 5:31 PM, Jan Beulich wrote: > On 10.05.17 at 16:03, wrote: >>> From: Oleksandr Tyshchenko >>> >>> The presence of this flag lets us know that the guest >>> has devices which will most likely be used for passthrough >>> and as the re

Re: [Xen-devel] [PATCH v1 06/10] iommu: Add extra use_iommu argument to iommu_domain_init()

2017-05-12 Thread Oleksandr Tyshchenko
Hi, Jan. On Fri, May 12, 2017 at 5:31 PM, Jan Beulich wrote: On 10.05.17 at 16:03, wrote: >> From: Oleksandr Tyshchenko >> >> The presence of this flag lets us know that the guest >> has devices which will most likely be used for passthrough >> and as the result the use of IOMMU is expecte

Re: [Xen-devel] [PATCH v1 06/10] iommu: Add extra use_iommu argument to iommu_domain_init()

2017-05-12 Thread Jan Beulich
>>> On 10.05.17 at 16:03, wrote: > From: Oleksandr Tyshchenko > > The presence of this flag lets us know that the guest > has devices which will most likely be used for passthrough > and as the result the use of IOMMU is expected for this domain. > In that case we have to call iommu_construct(),

[Xen-devel] [PATCH v1 06/10] iommu: Add extra use_iommu argument to iommu_domain_init()

2017-05-10 Thread Oleksandr Tyshchenko
From: Oleksandr Tyshchenko The presence of this flag lets us know that the guest has devices which will most likely be used for passthrough and as the result the use of IOMMU is expected for this domain. In that case we have to call iommu_construct(), actually what the real assign_device call usu