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

2017-06-05 Thread Michael S. Tsirkin
On Mon, Jun 05, 2017 at 11:15:11AM +0800, Peter Xu wrote: > On Fri, Jun 02, 2017 at 06:45:05PM +0300, Michael S. Tsirkin wrote: > > On Fri, Jun 02, 2017 at 07:50:54PM +0800, Peter Xu wrote: > > > This patch pre-heat vhost iotlb cache when passthrough mode enabled. > > > > > > Sometimes, even if us

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

2017-06-04 Thread Jason Wang
On 2017年06月05日 11:15, Peter Xu wrote: On Fri, Jun 02, 2017 at 06:45:05PM +0300, Michael S. Tsirkin wrote: On Fri, Jun 02, 2017 at 07:50:54PM +0800, Peter Xu wrote: This patch pre-heat vhost iotlb cache when passthrough mode enabled. Sometimes, even if user specified iommu_platform for vhost

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

2017-06-04 Thread Peter Xu
On Fri, Jun 02, 2017 at 06:45:05PM +0300, Michael S. Tsirkin wrote: > On Fri, Jun 02, 2017 at 07:50:54PM +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

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

2017-06-02 Thread Michael S. Tsirkin
On Fri, Jun 02, 2017 at 07:50:54PM +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 de

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

2017-06-02 Thread Michael S. Tsirkin
On Fri, Jun 02, 2017 at 07:50:54PM +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 de

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

2017-06-02 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 tra