Re: [PATCH] vhost: fix madvise IOTLB entries pages overlap check

2023-03-15 Thread Maxime Coquelin
On 3/15/23 12:31, Maxime Coquelin wrote: At removal time, when testing whether the IOTLB entry has shared pages with the previous and next entries in the cache, it checks whether the start address of the entry to be removed is on the same page as the start address of the next entry in the cach

[PATCH] vhost: fix madvise IOTLB entries pages overlap check

2023-03-15 Thread Maxime Coquelin
At removal time, when testing whether the IOTLB entry has shared pages with the previous and next entries in the cache, it checks whether the start address of the entry to be removed is on the same page as the start address of the next entry in the cache. This is not correct, as an entry could cov