Re: [Qemu-devel] [PATCH v3 4/4] intel_iommu: implement mru list for iotlb

2017-07-26 Thread Peter Xu
On Wed, Jul 26, 2017 at 11:37:13PM +0300, Michael S. Tsirkin wrote: > On Mon, Jul 17, 2017 at 09:53:27AM +0800, Peter Xu wrote: > > On Fri, Jul 14, 2017 at 03:28:09PM +0800, Jason Wang wrote: > > > > > > > > > On 2017年07月14日 12:32, Peter Xu wrote: > > > >On Thu, Jul 13, 2017 at 04:48:42PM +0800,

Re: [Qemu-devel] [PATCH v3 4/4] intel_iommu: implement mru list for iotlb

2017-07-26 Thread Michael S. Tsirkin
On Mon, Jul 17, 2017 at 09:53:27AM +0800, Peter Xu wrote: > On Fri, Jul 14, 2017 at 03:28:09PM +0800, Jason Wang wrote: > > > > > > On 2017年07月14日 12:32, Peter Xu wrote: > > >On Thu, Jul 13, 2017 at 04:48:42PM +0800, Jason Wang wrote: > > >> > > >>On 2017年07月12日 16:13, Peter Xu wrote: > > >>>It

Re: [Qemu-devel] [PATCH v3 4/4] intel_iommu: implement mru list for iotlb

2017-07-16 Thread Peter Xu
On Fri, Jul 14, 2017 at 03:28:09PM +0800, Jason Wang wrote: > > > On 2017年07月14日 12:32, Peter Xu wrote: > >On Thu, Jul 13, 2017 at 04:48:42PM +0800, Jason Wang wrote: > >> > >>On 2017年07月12日 16:13, Peter Xu wrote: > >>>It is not wise to disgard all the IOTLB cache when cache size reaches >

Re: [Qemu-devel] [PATCH v3 4/4] intel_iommu: implement mru list for iotlb

2017-07-14 Thread Jason Wang
On 2017年07月14日 12:32, Peter Xu wrote: On Thu, Jul 13, 2017 at 04:48:42PM +0800, Jason Wang wrote: On 2017年07月12日 16:13, Peter Xu wrote: It is not wise to disgard all the IOTLB cache when cache size reaches max, but that's what we do now. A slightly better (but still simple) way to do this

Re: [Qemu-devel] [PATCH v3 4/4] intel_iommu: implement mru list for iotlb

2017-07-13 Thread Peter Xu
On Thu, Jul 13, 2017 at 08:49:44PM +0300, Michael S. Tsirkin wrote: > On Wed, Jul 12, 2017 at 04:13:43PM +0800, Peter Xu wrote: > > It is not wise to disgard all the IOTLB cache when cache size reaches > > max, but that's what we do now. A slightly better (but still simple) way > > to do this is,

Re: [Qemu-devel] [PATCH v3 4/4] intel_iommu: implement mru list for iotlb

2017-07-13 Thread Peter Xu
On Thu, Jul 13, 2017 at 04:48:42PM +0800, Jason Wang wrote: > > > On 2017年07月12日 16:13, Peter Xu wrote: > >It is not wise to disgard all the IOTLB cache when cache size reaches > >max, but that's what we do now. A slightly better (but still simple) way > >to do this is, we just throw away the

Re: [Qemu-devel] [PATCH v3 4/4] intel_iommu: implement mru list for iotlb

2017-07-13 Thread Michael S. Tsirkin
On Wed, Jul 12, 2017 at 04:13:43PM +0800, Peter Xu wrote: > It is not wise to disgard all the IOTLB cache when cache size reaches > max, but that's what we do now. A slightly better (but still simple) way > to do this is, we just throw away the least recent used cache entry. Not wise how? Slower?

Re: [Qemu-devel] [PATCH v3 4/4] intel_iommu: implement mru list for iotlb

2017-07-13 Thread Jason Wang
On 2017年07月12日 16:13, Peter Xu wrote: It is not wise to disgard all the IOTLB cache when cache size reaches max, but that's what we do now. A slightly better (but still simple) way to do this is, we just throw away the least recent used cache entry. This patch implemented MRU list algorithm

[Qemu-devel] [PATCH v3 4/4] intel_iommu: implement mru list for iotlb

2017-07-12 Thread Peter Xu
It is not wise to disgard all the IOTLB cache when cache size reaches max, but that's what we do now. A slightly better (but still simple) way to do this is, we just throw away the least recent used cache entry. This patch implemented MRU list algorithm for VT-d IOTLB. The main logic is to