Re: [Qemu-devel] [PATCH v4 10/10] vhost: iommu: cache static mapping if there is

2017-05-28 Thread Peter Xu
On Thu, May 25, 2017 at 09:14:55PM +0300, Michael S. Tsirkin wrote: > On Mon, May 22, 2017 at 10:42:00AM +0800, Peter Xu wrote: > > On Fri, May 19, 2017 at 07:55:26PM +0300, Michael S. Tsirkin wrote: > > > On Fri, May 19, 2017 at 11:19:49AM +0800, Peter Xu wrote: > > > > This patch pre-heat vhost

Re: [Qemu-devel] [PATCH v4 10/10] vhost: iommu: cache static mapping if there is

2017-05-25 Thread Michael S. Tsirkin
On Mon, May 22, 2017 at 10:42:00AM +0800, Peter Xu wrote: > On Fri, May 19, 2017 at 07:55:26PM +0300, Michael S. Tsirkin wrote: > > On Fri, May 19, 2017 at 11:19:49AM +0800, Peter Xu wrote: > > > This patch pre-heat vhost iotlb cache when passthrough mode enabled. > > > > > > Sometimes, even if

Re: [Qemu-devel] [PATCH v4 10/10] vhost: iommu: cache static mapping if there is

2017-05-21 Thread Peter Xu
On Fri, May 19, 2017 at 07:55:26PM +0300, Michael S. Tsirkin wrote: > On Fri, May 19, 2017 at 11:19:49AM +0800, Peter Xu wrote: > > This patch pre-heat vhost iotlb cache when passthrough mode enabled. > > > > Sometimes, even if user specified iommu_platform for vhost devices, > > IOMMU might

Re: [Qemu-devel] [PATCH v4 10/10] vhost: iommu: cache static mapping if there is

2017-05-21 Thread Jason Wang
On 2017年05月20日 00:55, Michael S. Tsirkin wrote: On Fri, May 19, 2017 at 11:19:49AM +0800, Peter Xu wrote: This patch pre-heat vhost iotlb cache when passthrough mode enabled. Sometimes, even if user specified iommu_platform for vhost devices, IOMMU might still be disabled. One case is

Re: [Qemu-devel] [PATCH v4 10/10] vhost: iommu: cache static mapping if there is

2017-05-19 Thread Michael S. Tsirkin
On Fri, May 19, 2017 at 11:19:49AM +0800, Peter Xu wrote: > This patch pre-heat vhost iotlb cache when passthrough mode enabled. > > Sometimes, even if user specified iommu_platform for vhost devices, > IOMMU might still be disabled. One case is passthrough mode in VT-d > implementation. We can

[Qemu-devel] [PATCH v4 10/10] vhost: iommu: cache static mapping if there is

2017-05-18 Thread Peter Xu
This patch pre-heat vhost iotlb cache when passthrough mode enabled. Sometimes, even if user specified iommu_platform for vhost devices, IOMMU might still be disabled. One case is passthrough mode in VT-d implementation. We can detect this by observing iommu_list. If it's empty, it means IOMMU